Professional Documents
Culture Documents
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @calculate_OpeningFcn, ...
'gui_OutputFcn', @calculate_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
handles.output = hObject;
guidata(hObject, handles);
varargout{1} = handles.output;
voc=getappdata(0,'voc');
ioc=getappdata(0,'ioc');
poc=getappdata(0,'poc');
vcc=getappdata(0,'vcc');
icc=getappdata(0,'icc');
pcc=getappdata(0,'pcc');
1
is=sn/vs;
str2double(set(handles.Rmag,'string',rmag))
%Reactancia de Magnetización:
soc=voc*ioc;
fp_oc=poc/soc;
theta_oc=acos(fp_oc);
qoc=poc*tan(theta_oc);
xm=(voc^2)/qoc;
xmag=xm/(a^2);
str2double(set(handles.Xmag,'string',xmag))
str2double(set(handles.Req,'string',req))
%Reactancia Equivalente:
scc=vcc*icc;
fp_cc=pcc/scc;
theta_cc=acos(fp_cc);
qcc=pcc*tan(theta_cc);
xeq=qcc/(icc^2);
str2double(set(handles.Xeq,'string',xeq))
%Corrientes en pantalla...
str2double(set(handles.Ip,'string',ip))
str2double(set(handles.Is,'string',is))
2
Published with MATLAB® R2017b