%==================================================
function varargout = ir_a_otro_guide1(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ir_a_otro_guide1_OpeningFcn, ...
'gui_OutputFcn', @ir_a_otro_guide1_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
function ir_a_otro_guide1_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
uicontrol('Style','pushbutton',...
'Units','normalized',...
'Position',[.75 .09 .2 .29], ...
'String','INICIO ',...
'Callback','close all;clc; ir_a_otro_guide2');
guidata(hObject, handles);
function varargout = ir_a_otro_guide1_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
%=====================================
function varargout = ir_a_otro_guide2(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ir_a_otro_guide2_OpeningFcn, ...
'gui_OutputFcn', @ir_a_otro_guide2_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
function ir_a_otro_guide2_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = ir_a_otro_guide2_OutputFcn(hObject, eventdata, handles)
uicontrol('Style','pushbutton',...
'Units','normalized',...
'String','FINALIZAR',...
'Callback','close all;clc; ir_a_otro_guide3');
varargout{1} = handles.output;
function ingrese_funcion_Callback(hObject, eventdata, handles)
global fun
fun=get(hObject,'String');
function intervalo_Callback(hObject, eventdata, handles)
global I
I=str2num(get(hObject,'String'));
%============================================
function varargout = ir_a_otro_guide3(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ir_a_otro_guide3_OpeningFcn, ...
'gui_OutputFcn', @ir_a_otro_guide3_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
function ir_a_otro_guide3_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = ir_a_otro_guide3_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function graficar_Callback(hObject, eventdata, handles)
global fun I
f=vectorize(inline(fun));
x=linspace(I(1), I(2),10);
y=f(x);
plot(x,y)
%===================================