Professional Documents
Culture Documents
IV MECATRONICA B
%
qquad str2double(gat(hObject,String)) returns contents of f as e duoble
% Executes during object creation, after setting all properties.
function f CreateFcn(hObject, eventdata, handles)
% hObject handle to f (see GCBO)
% eventdate reserved - to be defined en a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgrOundColor))
set(hObject,BackgroundColor,white);
end
axes(handles.axes2);
semilogx(w,real((phase(1,:))),b, Linewidth, 1);
grid on
xlabel(\bfFrecuencia [rads/sea])
ylabel(\bfFase)
% Executes on button press in pushbutton2.
fuction pushbutton2 Calkbacl(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.f, String, );
axes(handles.axes1); cla
axes(handles.axes2); cla
3
EJEMPLO
Funcion:
F (s) =
10s
s
(1+ 2s )(1+ 10
)