Beruflich Dokumente
Kultur Dokumente
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Outputs from this function are returned to the command line.
function varargout = ManBac_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
V = str2double(get(handles.voltage,'string'));
A = str2double(get(handles.Angle,'string'));
R1 = str2double(get(handles.resistor1,'string'));
R2 = str2double(get(handles.resistor2,'string'));
R3 = str2double(get(handles.resistor3,'string'));
L = str2double(get(handles.inductor,'string'));
C = str2double(get(handles.capacitor,'string'));
N1 = str2double(get(handles.n1,'string'));
N2 = str2double(get(handles.n2,'string'));
N3 = str2double(get(handles.n3,'string'));
N4 = str2double(get(handles.n4,'string'));
%Solving for I1
Vs = V*exp(i*A*pi/180);
I1 = Vs/Zin;
Iai = abs(I1);
Ibi = angle(I1)*180/pi;
set(handles.current1,'string',Iai);
set(handles.current2,'string',Ibi);
set(handles.zin1,'string',Zinca);
set(handles.zin2,'string',Zincb);
set(handles.complex1,'string',Sr);
set(handles.complex2,'string',Si);