Professional Documents
Culture Documents
Examen Unidad I Metodos Numericos
Examen Unidad I Metodos Numericos
INSTRUCCIONES:
(10)
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes GRAFICAFUNCIONES wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = GRAFICAFUNCIONES_OutputFcn(hObject, eventdata,
handles)
(12)
% 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)
(14)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
(16)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
(18)
% 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)
(20)
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
(22)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
function edit1_Callback(hObject, eventdata, handles)
(24)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
(26)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
(28)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
function pushbutton1_Callback(hObject, eventdata, handles)
(14)
f=get(handles.edit1,'string');
g=get(handles.edit2,'stringon');
a=str2num(get(handles.edit3,'string'));
b=str2num(get(handles.edit4,'string'));
%grafica
x=a:0.01:b;
y=eval(f);
plot(x,y)
hold on
x=a:0.01:b;
y=eval(g);
plot(x,y)
hold off