You are on page 1of 22

function varargout = deber(varargin) end

% DEBER MATLAB code for deber.fig


% DEBER, by itself, creates a if nargout
new DEBER or raises the existing [varargout{1:nargout}] =
% singleton*. gui_mainfcn(gui_State, varargin{:});
% else
% H = DEBER returns the handle gui_mainfcn(gui_State,
to a new DEBER or the handle to varargin{:});
% the existing singleton*. end
% % End initialization code - DO NOT
% EDIT
DEBER('CALLBACK',hObject,eventData,ha
ndles,...) calls the local
% function named CALLBACK in
DEBER.M with the given input % --- Executes just before deber is
arguments. made visible.
% function deber_OpeningFcn(hObject,
% DEBER('Property','Value',...) eventdata, handles, varargin)
creates a new DEBER or raises the % This function has no output args,
% existing singleton*. Starting see OutputFcn.
from the left, property value pairs % hObject handle to figure
are % eventdata reserved - to be defined
% applied to the GUI before in a future version of MATLAB
deber_OpeningFcn gets called. An % handles structure with handles
% unrecognized property name or and user data (see GUIDATA)
invalid value makes property % varargin command line arguments
application to deber (see VARARGIN)
% stop. All inputs are passed
to deber_OpeningFcn via varargin. % Choose default command line output
% for deber
% *See GUI Options on GUIDE's handles.output = hObject;
Tools menu. Choose "GUI allows only
one
% instance to run (singleton)". % Update handles structure
% guidata(hObject, handles);
% See also: GUIDE, GUIDATA,
GUIHANDLES % UIWAIT makes deber wait for user
response (see UIRESUME)
% Edit the above text to modify the % uiwait(handles.figure1);
response to help deber

% Last Modified by GUIDE v2.5 20-Nov- % --- Outputs from this function are
2018 19:38:46 returned to the command line.
function varargout =
% Begin initialization code - DO NOT deber_OutputFcn(hObject, eventdata,
EDIT handles)
gui_Singleton = 1; % varargout cell array for returning
gui_State = struct('gui_Name', output args (see VARARGOUT);
mfilename, ... % hObject handle to figure
'gui_Singleton', % eventdata reserved - to be defined
gui_Singleton, ... in a future version of MATLAB
'gui_OpeningFcn', % handles structure with handles
@deber_OpeningFcn, ... and user data (see GUIDATA)
'gui_OutputFcn',
@deber_OutputFcn, ... % Get default command line output
'gui_LayoutFcn', from handles structure
[] , ... varargout{1} = handles.output;
'gui_Callback', set(handles.selec,'visible','on')
[]);
if nargin && ischar(varargin{1}) set(handles.ilaplace,'visible','on')
gui_State.gui_Callback =
str2func(varargin{1});
set(handles.tdlp,'visible','off')
set(handles.ecuaciones,'visible','on'
) set(handles.tidlp,'visible','off')
set(handles.graf,'visible','off')
set(handles.graficas,'visible','on') set(handles.ed,'visible','off')

set(handles.laplace,'visible','on') set(handles.atras,'visible','off')
set(handles.y3,'visible','off') set(handles.plot,'visible','off')
set(handles.y2,'visible','off') set(handles.seno,'visible','off')
set(handles.y1,'visible','off') set(handles.cos,'visible','off')
set(handles.y,'visible','off') set(handles.tan,'visible','off')
set(handles.x,'visible','off') set(handles.sec,'visible','off')
set(handles.yiv,'visible','off')
set(handles.yiii,'visible','off') set(handles.grafec,'visible','off')
set(handles.yii,'visible','off') set(handles.int,'visible','off')
set(handles.yi,'visible','off')
set(handles.y0,'visible','off') set(handles.yigual,'visible','off')
set(handles.uno,'visible','off')
set(handles.dos,'visible','off')
set(handles.tres,'visible','off') set(handles.borrar,'visible','off')
set(handles.flap,'visible','off')
set(handles.cuatro,'visible','off')
set(handles.filap,'visible','off')
set(handles.igual,'visible','off')
set(handles.graficax,'visible','off')
set(handles.orden,'visible','off')
set(handles.axes2,'visible','off')
set(handles.ordened,'visible','off')
set(handles.c,'visible','off') % --- Executes on button press in
set(handles.ci,'visible','off') laplace.
set(handles.ci1,'visible','off') function laplace_Callback(hObject,
set(handles.ci2,'visible','off') eventdata, handles)
set(handles.ci3,'visible','off') % hObject handle to laplace (see
set(handles.ci4,'visible','off') GCBO)
set(handles.cci1,'visible','off') % eventdata reserved - to be defined
set(handles.cci2,'visible','off') in a future version of MATLAB
set(handles.cci3,'visible','off') % handles structure with handles
set(handles.cci4,'visible','off') and user data (see GUIDATA)
set(handles.a,'visible','off') set(handles.laplace,'value',0)
set(handles.b,'visible','off') set(handles.resultado2,'string','
set(handles.ab,'visible','off') ')
set(handles.res,'visible','off') set(handles.lapl,'string',' ')

set(handles.resultado,'visible','off' set(handles.selec,'visible','off')
)
set(handles.ilaplace,'visible','off')
set(handles.boton1,'visible','off')
set(handles.ecuaciones,'visible','off
set(handles.boton2,'visible','off') ')

set(handles.boton3,'visible','off') set(handles.graficas,'visible','off')

set(handles.boton4,'visible','off') set(handles.laplace,'visible','off')
set(handles.res2,'visible','off') set(handles.y3,'visible','off')

set(handles.resultado2,'visible','off set(handles.graficax,'visible','off')
')
set(handles.lap,'visible','off') set(handles.axes2,'visible','off')
set(handles.lapl,'visible','off') set(handles.y2,'visible','off')
set(handles.y1,'visible','off')
set(handles.y,'visible','off')
set(handles.x,'visible','off')
set(handles.yiv,'visible','off') % Hint: get(hObject,'Value') returns
set(handles.yiii,'visible','off') toggle state of laplace
set(handles.yii,'visible','off')
set(handles.yi,'visible','off')
set(handles.y0,'visible','off') % --- Executes on button press in
set(handles.uno,'visible','off') ilaplace.
set(handles.dos,'visible','off') function ilaplace_Callback(hObject,
set(handles.tres,'visible','off') eventdata, handles)
% hObject handle to ilaplace (see
set(handles.cuatro,'visible','off') GCBO)
% eventdata reserved - to be defined
set(handles.igual,'visible','off') in a future version of MATLAB
% handles structure with handles
and user data (see GUIDATA)
set(handles.orden,'visible','off') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
set(handles.ordened,'visible','off') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
set(handles.c,'visible','off') %%%%%%%%
set(handles.ci,'visible','off') %%%%%%%%%%%%%%%%%%%%%%ilaplace
set(handles.ci1,'visible','off') %transformada inversa de Laplace
set(handles.ci2,'visible','off') set(handles.ilaplace,'value',0)
set(handles.ci3,'visible','off') set(handles.resultado2,'string','
set(handles.ci4,'visible','off') ')
set(handles.cci1,'visible','off') set(handles.lapl,'string',' ')
set(handles.cci2,'visible','off')
set(handles.cci3,'visible','off') set(handles.selec,'visible','off')
set(handles.cci4,'visible','off')
set(handles.a,'visible','off')
set(handles.b,'visible','off') set(handles.ilaplace,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','off') set(handles.ecuaciones,'visible','off
')
set(handles.resultado,'visible','off'
) set(handles.graficax,'visible','off')
set(handles.res2,'visible','on')
set(handles.axes2,'visible','off')
set(handles.resultado2,'visible','on'
) set(handles.graficas,'visible','off')

set(handles.boton1,'visible','off') set(handles.laplace,'visible','off')
set(handles.y3,'visible','off')
set(handles.boton2,'visible','on') set(handles.y2,'visible','off')
set(handles.y1,'visible','off')
set(handles.boton3,'visible','off') set(handles.y,'visible','off')
set(handles.x,'visible','off')
set(handles.yiv,'visible','off')
set(handles.boton4,'visible','off') set(handles.yiii,'visible','off')
set(handles.lap,'visible','on') set(handles.yii,'visible','off')
set(handles.lapl,'visible','on') set(handles.yi,'visible','off')
set(handles.ed,'visible','off') set(handles.y0,'visible','off')
set(handles.uno,'visible','off')
set(handles.tidlp,'visible','off') set(handles.dos,'visible','off')
set(handles.tdlp,'visible','on') set(handles.tres,'visible','off')
set(handles.graf,'visible','off')
set(handles.atras,'visible','on') set(handles.cuatro,'visible','off')

set(handles.borrar,'visible','on') set(handles.igual,'visible','off')
set(handles.flap,'visible','on')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
set(handles.orden,'visible','off') %%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
set(handles.ordened,'visible','off') %%%%%%%%%%%%%%%%%%%%%%%%%
set(handles.c,'visible','off') %ecuaciones-->radiobutton
set(handles.ci,'visible','off') set(handles.ecuaciones,'value',0)
set(handles.ci1,'visible','off') set(handles.atras,'visible','on')
set(handles.ci2,'visible','off') set(handles.resultado2,'string','
set(handles.ci3,'visible','off') ')
set(handles.ci4,'visible','off') set(handles.lapl,'string',' ')
set(handles.cci1,'visible','off')
set(handles.cci2,'visible','off')
set(handles.cci3,'visible','off') set(handles.ordened,'visible','on')
set(handles.cci4,'visible','off') set(handles.orden,'visible','on')
set(handles.a,'visible','off')
set(handles.b,'visible','off') set(handles.selec,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','off') set(handles.graficax,'visible','on')
set(handles.axes2,'visible','on')
set(handles.resultado,'visible','off'
) set(handles.ilaplace,'visible','off')
set(handles.res2,'visible','on')
set(handles.ecuaciones,'visible','off
set(handles.resultado2,'visible','on' ')
)
set(handles.graficas,'visible','off')
set(handles.boton1,'visible','off')
set(handles.laplace,'visible','off')
set(handles.boton2,'visible','off') set(handles.tdlp,'visible','off')

set(handles.boton3,'visible','on') set(handles.tidlp,'visible','off')
set(handles.graf,'visible','off')
set(handles.boton4,'visible','off') set(handles.ed,'visible','on')
set(handles.lap,'visible','on')
set(handles.lapl,'visible','on') set(handles.borrar,'visible','on')
set(handles.ed,'visible','off')
set(handles.tdlp,'visible','off')
set(handles.graf,'visible','off') % Hint: get(hObject,'Value') returns
set(handles.tidlp,'visible','on') toggle state of ecuaciones
set(handles.atras,'visible','on')

set(handles.borrar,'visible','on') % --- Executes on button press in


set(handles.filap,'visible','on') graficas.
function graficas_Callback(hObject,
% Hint: get(hObject,'Value') returns eventdata, handles)
toggle state of ilaplace % hObject handle to graficas (see
GCBO)
% eventdata reserved - to be defined
in a future version of MATLAB
% --- Executes on button press in % handles structure with handles
ecuaciones. and user data (see GUIDATA)
function ecuaciones_Callback(hObject, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
eventdata, handles) %%%%%%%%%%
% hObject handle to ecuaciones %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(see GCBO) %%%%%%%%%%
% eventdata reserved - to be defined %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
in a future version of MATLAB %graficas
% handles structure with handles set(handles.graficas,'value',0)
and user data (see GUIDATA)
set(handles.selec,'visible','off')
set(handles.ilaplace,'visible','off') set(handles.boton3,'visible','off')

set(handles.ecuaciones,'visible','off set(handles.boton4,'visible','off')
') set(handles.lap,'visible','off')
set(handles.lapl,'visible','off')
set(handles.graficas,'visible','off') set(handles.ed,'visible','off')

set(handles.laplace,'visible','off') set(handles.tidlp,'visible','off')
set(handles.y3,'visible','off') set(handles.graf,'visible','on')
set(handles.tdlp,'visible','off')
set(handles.atras,'visible','on')
set(handles.graficax,'visible','off') set(handles.plot,'visible','on')
set(handles.seno,'visible','on')
set(handles.axes2,'visible','off') set(handles.cos,'visible','on')
set(handles.y2,'visible','off') set(handles.tan,'visible','on')
set(handles.y1,'visible','off') set(handles.sec,'visible','on')
set(handles.y,'visible','off')
set(handles.x,'visible','off') set(handles.grafec,'visible','on')
set(handles.yiv,'visible','off') % Hint: get(hObject,'Value') returns
set(handles.yiii,'visible','off') toggle state of graficas
set(handles.yii,'visible','off')
set(handles.yi,'visible','off')
set(handles.y0,'visible','off')
set(handles.uno,'visible','off')
set(handles.dos,'visible','off') function edit1_Callback(hObject,
set(handles.tres,'visible','off') eventdata, handles)
% hObject handle to edit1 (see
set(handles.cuatro,'visible','off') GCBO)
% eventdata reserved - to be defined
set(handles.igual,'visible','off') in a future version of MATLAB
% handles structure with handles
and user data (see GUIDATA)
set(handles.orden,'visible','off')
% Hints: get(hObject,'String')
set(handles.ordened,'visible','off') returns contents of edit1 as text
set(handles.c,'visible','off') %
set(handles.ci,'visible','off') str2double(get(hObject,'String'))
set(handles.ci1,'visible','off') returns contents of edit1 as a double
set(handles.ci2,'visible','off')
set(handles.ci3,'visible','off')
set(handles.ci4,'visible','off')
set(handles.cci1,'visible','off') % --- Executes during object
set(handles.cci2,'visible','off') creation, after setting all
set(handles.cci3,'visible','off') properties.
set(handles.cci4,'visible','off') function edit1_CreateFcn(hObject,
set(handles.a,'visible','off') eventdata, handles)
set(handles.b,'visible','off') % hObject handle to edit1 (see
set(handles.ab,'visible','off') GCBO)
set(handles.res,'visible','off') % eventdata reserved - to be defined
in a future version of MATLAB
set(handles.resultado,'visible','off' % handles empty - handles not
) created until after all CreateFcns
set(handles.res2,'visible','off') called

set(handles.resultado2,'visible','off % Hint: edit controls usually have a


') white background on Windows.
% See ISPC and COMPUTER.
if ispc &&
set(handles.boton1,'visible','off') isequal(get(hObject,'BackgroundColor'
),
set(handles.boton2,'visible','off')
get(0,'defaultUicontrolBackgroundColo % Hints: get(hObject,'String')
r')) returns contents of y3 as text
%
set(hObject,'BackgroundColor','white' str2double(get(hObject,'String'))
); returns contents of y3 as a double
end

% --- Executes during object


creation, after setting all
properties.
function uno_Callback(hObject, function y3_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to uno (see GCBO) % hObject handle to y3 (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
% Hints: get(hObject,'String')
returns contents of uno as text % Hint: edit controls usually have a
% white background on Windows.
str2double(get(hObject,'String')) % See ISPC and COMPUTER.
returns contents of uno as a double if ispc &&
isequal(get(hObject,'BackgroundColor'
),
% --- Executes during object get(0,'defaultUicontrolBackgroundColo
creation, after setting all r'))
properties.
function uno_CreateFcn(hObject, set(hObject,'BackgroundColor','white'
eventdata, handles) );
% hObject handle to uno (see GCBO) end
% eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called function dos_Callback(hObject,
eventdata, handles)
% Hint: edit controls usually have a % hObject handle to dos (see GCBO)
white background on Windows. % eventdata reserved - to be defined
% See ISPC and COMPUTER. in a future version of MATLAB
if ispc && % handles structure with handles
isequal(get(hObject,'BackgroundColor' and user data (see GUIDATA)
),
get(0,'defaultUicontrolBackgroundColo % Hints: get(hObject,'String')
r')) returns contents of dos as text
%
set(hObject,'BackgroundColor','white' str2double(get(hObject,'String'))
); returns contents of dos as a double
end

% --- Executes during object


creation, after setting all
properties.
function y3_Callback(hObject, function dos_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to y3 (see GCBO) % hObject handle to dos (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
function y1_Callback(hObject,
% Hint: edit controls usually have a eventdata, handles)
white background on Windows. % hObject handle to y1 (see GCBO)
% See ISPC and COMPUTER. % eventdata reserved - to be defined
if ispc && in a future version of MATLAB
isequal(get(hObject,'BackgroundColor' % handles structure with handles
), and user data (see GUIDATA)
get(0,'defaultUicontrolBackgroundColo
r')) % Hints: get(hObject,'String')
returns contents of y1 as text
set(hObject,'BackgroundColor','white' %
); str2double(get(hObject,'String'))
end returns contents of y1 as a double

% --- Executes during object


creation, after setting all
function y2_Callback(hObject, properties.
eventdata, handles) function y1_CreateFcn(hObject,
% hObject handle to y2 (see GCBO) eventdata, handles)
% eventdata reserved - to be defined % hObject handle to y1 (see GCBO)
in a future version of MATLAB % eventdata reserved - to be defined
% handles structure with handles in a future version of MATLAB
and user data (see GUIDATA) % handles empty - handles not
created until after all CreateFcns
% Hints: get(hObject,'String') called
returns contents of y2 as text
% % Hint: edit controls usually have a
str2double(get(hObject,'String')) white background on Windows.
returns contents of y2 as a double % See ISPC and COMPUTER.
if ispc &&
isequal(get(hObject,'BackgroundColor'
% --- Executes during object ),
creation, after setting all get(0,'defaultUicontrolBackgroundColo
properties. r'))
function y2_CreateFcn(hObject,
eventdata, handles) set(hObject,'BackgroundColor','white'
% hObject handle to y2 (see GCBO) );
% eventdata reserved - to be defined end
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called
function y_Callback(hObject,
% Hint: edit controls usually have a eventdata, handles)
white background on Windows. % hObject handle to y (see GCBO)
% See ISPC and COMPUTER. % eventdata reserved - to be defined
if ispc && in a future version of MATLAB
isequal(get(hObject,'BackgroundColor' % handles structure with handles
), and user data (see GUIDATA)
get(0,'defaultUicontrolBackgroundColo
r')) % Hints: get(hObject,'String')
returns contents of y as text
set(hObject,'BackgroundColor','white' %
); str2double(get(hObject,'String'))
end returns contents of y as a double

% --- Executes during object


creation, after setting all
properties.
function y_CreateFcn(hObject,
eventdata, handles) set(hObject,'BackgroundColor','white'
% hObject handle to y (see GCBO) );
% eventdata reserved - to be defined end
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called
function tres_Callback(hObject,
% Hint: edit controls usually have a eventdata, handles)
white background on Windows. % hObject handle to tres (see
% See ISPC and COMPUTER. GCBO)
if ispc && % eventdata reserved - to be defined
isequal(get(hObject,'BackgroundColor' in a future version of MATLAB
), % handles structure with handles
get(0,'defaultUicontrolBackgroundColo and user data (see GUIDATA)
r'))
% Hints: get(hObject,'String')
set(hObject,'BackgroundColor','white' returns contents of tres as text
); %
end str2double(get(hObject,'String'))
returns contents of tres as a double

function x_Callback(hObject, % --- Executes during object


eventdata, handles) creation, after setting all
% hObject handle to x (see GCBO) properties.
% eventdata reserved - to be defined function tres_CreateFcn(hObject,
in a future version of MATLAB eventdata, handles)
% handles structure with handles % hObject handle to tres (see
and user data (see GUIDATA) GCBO)
% eventdata reserved - to be defined
in a future version of MATLAB
% Hints: get(hObject,'String') % handles empty - handles not
returns contents of x as text created until after all CreateFcns
% called
str2double(get(hObject,'String'))
returns contents of x as a double
% Hint: edit controls usually have a
white background on Windows.
% See ISPC and COMPUTER.
% --- Executes during object if ispc &&
creation, after setting all isequal(get(hObject,'BackgroundColor'
properties. ),
function x_CreateFcn(hObject, get(0,'defaultUicontrolBackgroundColo
eventdata, handles) r'))
% hObject handle to x (see GCBO)
% eventdata reserved - to be defined set(hObject,'BackgroundColor','white'
in a future version of MATLAB );
% handles empty - handles not end
created until after all CreateFcns
called

% Hint: edit controls usually have a


white background on Windows. function cuatro_Callback(hObject,
% See ISPC and COMPUTER. eventdata, handles)
if ispc && % hObject handle to cuatro (see
isequal(get(hObject,'BackgroundColor' GCBO)
), % eventdata reserved - to be defined
get(0,'defaultUicontrolBackgroundColo in a future version of MATLAB
r')) % handles structure with handles
and user data (see GUIDATA)
% handles empty - handles not
% Hints: get(hObject,'String') created until after all CreateFcns
returns contents of cuatro as text called
%
str2double(get(hObject,'String')) % Hint: edit controls usually have a
returns contents of cuatro as a white background on Windows.
double % See ISPC and COMPUTER.
if ispc &&
isequal(get(hObject,'BackgroundColor'
),
% --- Executes during object get(0,'defaultUicontrolBackgroundColo
creation, after setting all r'))
properties.
function cuatro_CreateFcn(hObject,
eventdata, handles) set(hObject,'BackgroundColor','white'
% hObject handle to cuatro (see );
GCBO) end
% eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called function edit14_Callback(hObject,
eventdata, handles)
% hObject handle to y3 (see GCBO)
% Hint: edit controls usually have a % eventdata reserved - to be defined
white background on Windows. in a future version of MATLAB
% See ISPC and COMPUTER. % handles structure with handles
if ispc && and user data (see GUIDATA)
isequal(get(hObject,'BackgroundColor'
),
get(0,'defaultUicontrolBackgroundColo % Hints: get(hObject,'String')
r')) returns contents of y3 as text
%
str2double(get(hObject,'String'))
set(hObject,'BackgroundColor','white' returns contents of y3 as a double
);
end

% --- Executes during object


creation, after setting all
properties.
function edit13_Callback(hObject, function edit14_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to uno (see GCBO) % hObject handle to y3 (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
% Hints: get(hObject,'String')
returns contents of uno as text % Hint: edit controls usually have a
% white background on Windows.
str2double(get(hObject,'String')) % See ISPC and COMPUTER.
returns contents of uno as a double if ispc &&
isequal(get(hObject,'BackgroundColor'
),
get(0,'defaultUicontrolBackgroundColo
% --- Executes during object r'))
creation, after setting all
properties.
function edit13_CreateFcn(hObject, set(hObject,'BackgroundColor','white'
eventdata, handles) );
% hObject handle to uno (see GCBO) end
% eventdata reserved - to be defined
in a future version of MATLAB
% --- Executes during object
creation, after setting all
properties.
function edit15_Callback(hObject, function edit16_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to dos (see GCBO) % hObject handle to y2 (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
% Hints: get(hObject,'String')
returns contents of dos as text % Hint: edit controls usually have a
% white background on Windows.
str2double(get(hObject,'String')) % See ISPC and COMPUTER.
returns contents of dos as a double if ispc &&
isequal(get(hObject,'BackgroundColor'
),
% --- Executes during object get(0,'defaultUicontrolBackgroundColo
creation, after setting all r'))
properties.
function edit15_CreateFcn(hObject, set(hObject,'BackgroundColor','white'
eventdata, handles) );
% hObject handle to dos (see GCBO) end
% eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called function edit17_Callback(hObject,
eventdata, handles)
% Hint: edit controls usually have a % hObject handle to y1 (see GCBO)
white background on Windows. % eventdata reserved - to be defined
% See ISPC and COMPUTER. in a future version of MATLAB
if ispc && % handles structure with handles
isequal(get(hObject,'BackgroundColor' and user data (see GUIDATA)
),
get(0,'defaultUicontrolBackgroundColo % Hints: get(hObject,'String')
r')) returns contents of y1 as text
%
set(hObject,'BackgroundColor','white' str2double(get(hObject,'String'))
); returns contents of y1 as a double
end

% --- Executes during object


creation, after setting all
properties.
function edit16_Callback(hObject, function edit17_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to y2 (see GCBO) % hObject handle to y1 (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
% Hints: get(hObject,'String')
returns contents of y2 as text % Hint: edit controls usually have a
% white background on Windows.
str2double(get(hObject,'String')) % See ISPC and COMPUTER.
returns contents of y2 as a double if ispc &&
isequal(get(hObject,'BackgroundColor'
),
get(0,'defaultUicontrolBackgroundColo % Hints: get(hObject,'String')
r')) returns contents of x as text
%
set(hObject,'BackgroundColor','white' str2double(get(hObject,'String'))
); returns contents of x as a double
end

% --- Executes during object


creation, after setting all
properties.
function edit18_Callback(hObject, function edit19_CreateFcn(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to y (see GCBO) % hObject handle to x (see GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles empty - handles not
and user data (see GUIDATA) created until after all CreateFcns
called
% Hints: get(hObject,'String')
returns contents of y as text % Hint: edit controls usually have a
% white background on Windows.
str2double(get(hObject,'String')) % See ISPC and COMPUTER.
returns contents of y as a double if ispc &&
isequal(get(hObject,'BackgroundColor'
),
% --- Executes during object get(0,'defaultUicontrolBackgroundColo
creation, after setting all r'))
properties.
function edit18_CreateFcn(hObject, set(hObject,'BackgroundColor','white'
eventdata, handles) );
% hObject handle to y (see GCBO) end
% eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns
called function edit20_Callback(hObject,
eventdata, handles)
% Hint: edit controls usually have a % hObject handle to tres (see
white background on Windows. GCBO)
% See ISPC and COMPUTER. % eventdata reserved - to be defined
if ispc && in a future version of MATLAB
isequal(get(hObject,'BackgroundColor' % handles structure with handles
), and user data (see GUIDATA)
get(0,'defaultUicontrolBackgroundColo
r')) % Hints: get(hObject,'String')
returns contents of tres as text
set(hObject,'BackgroundColor','white' %
); str2double(get(hObject,'String'))
end returns contents of tres as a double

% --- Executes during object


creation, after setting all
function edit19_Callback(hObject, properties.
eventdata, handles) function edit20_CreateFcn(hObject,
% hObject handle to x (see GCBO) eventdata, handles)
% eventdata reserved - to be defined % hObject handle to tres (see
in a future version of MATLAB GCBO)
% handles structure with handles % eventdata reserved - to be defined
and user data (see GUIDATA) in a future version of MATLAB
% handles empty - handles not end
created until after all CreateFcns
called

% Hint: edit controls usually have a


white background on Windows. function ordened_Callback(hObject,
% See ISPC and COMPUTER. eventdata, handles)
if ispc && % hObject handle to ordened (see
isequal(get(hObject,'BackgroundColor' GCBO)
), % eventdata reserved - to be defined
get(0,'defaultUicontrolBackgroundColo in a future version of MATLAB
r')) % handles structure with handles
and user data (see GUIDATA)
set(hObject,'BackgroundColor','white'
); % Hints: get(hObject,'String')
end returns contents of ordened as text
%
str2double(get(hObject,'String'))
returns contents of ordened as a
double
function edit21_Callback(hObject,
eventdata, handles) opcion=str2double(get(handles.ordened
% hObject handle to cuatro (see ,'string')); % orden de la ecuacion
GCBO) switch opcion
% eventdata reserved - to be defined case 1 % orden=1
in a future version of MATLAB
% handles structure with handles set(handles.selec,'visible','off')
and user data (see GUIDATA)
set(handles.ilaplace,'visible','off')
% Hints: get(hObject,'String')
returns contents of cuatro as text
% set(handles.ecuaciones,'visible','off
str2double(get(hObject,'String')) ')
returns contents of cuatro as a
double set(handles.graficas,'visible','off')

set(handles.laplace,'visible','off')
% --- Executes during object set(handles.y3,'visible','off')
creation, after setting all set(handles.y2,'visible','off')
properties. set(handles.y1,'visible','off')
function edit21_CreateFcn(hObject, set(handles.y,'visible','on')
eventdata, handles) set(handles.x,'visible','on')
% hObject handle to cuatro (see set(handles.yiv,'visible','off')
GCBO) set(handles.yiii,'visible','off')
% eventdata reserved - to be defined set(handles.yii,'visible','off')
in a future version of MATLAB set(handles.yi,'visible','off')
% handles empty - handles not set(handles.y0,'visible','on')
created until after all CreateFcns set(handles.uno,'visible','off')
called set(handles.dos,'visible','off')
set(handles.tres,'visible','off')
% Hint: edit controls usually have a
white background on Windows. set(handles.cuatro,'visible','on')
% See ISPC and COMPUTER. set(handles.igual,'visible','on')
if ispc && set(handles.ci,'visible','on')
isequal(get(hObject,'BackgroundColor' set(handles.ci,'visible','on')
), set(handles.ci1,'visible','on')
get(0,'defaultUicontrolBackgroundColo set(handles.ci2,'visible','off')
r')) set(handles.ci3,'visible','off')
set(handles.ci4,'visible','off')
set(handles.cci1,'visible','on')
set(hObject,'BackgroundColor','white' set(handles.cci2,'visible','off')
); set(handles.cci3,'visible','off')
set(handles.cci4,'visible','off') set(handles.boton1,'visible','on')
set(handles.a,'visible','on')
set(handles.b,'visible','off') set(handles.boton2,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','on')
set(handles.boton3,'visible','off')
set(handles.resultado,'visible','on')
set(handles.boton4,'visible','off')
case 3
set(handles.boton1,'visible','on')
set(handles.selec,'visible','off')
set(handles.boton2,'visible','off')
set(handles.ilaplace,'visible','off')
set(handles.boton3,'visible','off')
set(handles.ecuaciones,'visible','off
set(handles.boton4,'visible','off') ')
case 2 %orden= 2
set(handles.graficas,'visible','off')
set(handles.selec,'visible','off')
set(handles.laplace,'visible','off')
set(handles.ilaplace,'visible','off') set(handles.y3,'visible','off')
set(handles.y2,'visible','on')
set(handles.ecuaciones,'visible','off set(handles.y1,'visible','on')
') set(handles.y,'visible','on')
set(handles.x,'visible','on')
set(handles.graficas,'visible','off') set(handles.yiv,'visible','off')
set(handles.yiii,'visible','off')
set(handles.yii,'visible','on')
set(handles.laplace,'visible','off') set(handles.yi,'visible','on')
set(handles.y3,'visible','off') set(handles.y0,'visible','on')
set(handles.y2,'visible','off') set(handles.uno,'visible','off')
set(handles.y1,'visible','on') set(handles.dos,'visible','on')
set(handles.y,'visible','on') set(handles.tres,'visible','on')
set(handles.x,'visible','on')
set(handles.yiv,'visible','off')
set(handles.yiii,'visible','off') set(handles.cuatro,'visible','on')
set(handles.yii,'visible','off') set(handles.igual,'visible','on')
set(handles.yi,'visible','on') set(handles.c,'visible','on')
set(handles.y0,'visible','on') set(handles.ci,'visible','on')
set(handles.uno,'visible','off') set(handles.ci1,'visible','on')
set(handles.dos,'visible','off') set(handles.ci2,'visible','on')
set(handles.tres,'visible','on') set(handles.ci3,'visible','on')
set(handles.ci4,'visible','off')
set(handles.cci1,'visible','on')
set(handles.cuatro,'visible','on') set(handles.cci2,'visible','on')
set(handles.igual,'visible','on') set(handles.cci3,'visible','on')
set(handles.c,'visible','on') set(handles.cci4,'visible','off')
set(handles.ci,'visible','on') set(handles.a,'visible','off')
set(handles.ci1,'visible','on') set(handles.b,'visible','off')
set(handles.ci2,'visible','on') set(handles.ab,'visible','on')
set(handles.ci3,'visible','off') set(handles.res,'visible','on')
set(handles.ci4,'visible','off')
set(handles.cci1,'visible','on')
set(handles.cci2,'visible','on') set(handles.resultado,'visible','on')
set(handles.cci3,'visible','off') set(handles.boton1,'visible','on')
set(handles.cci4,'visible','off')
set(handles.a,'visible','off')
set(handles.b,'visible','on') set(handles.boton2,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','on')
set(handles.boton3,'visible','off')
set(handles.resultado,'visible','on')
set(handles.boton4,'visible','off')
case 4 % hObject handle to ordened (see
GCBO)
set(handles.selec,'visible','off') % eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
set(handles.ilaplace,'visible','off') created until after all CreateFcns
called
set(handles.ecuaciones,'visible','off
') % Hint: edit controls usually have a
white background on Windows.
set(handles.graficas,'visible','off') % See ISPC and COMPUTER.
if ispc &&
set(handles.laplace,'visible','off') isequal(get(hObject,'BackgroundColor'
set(handles.y3,'visible','on') ),
set(handles.y2,'visible','on') get(0,'defaultUicontrolBackgroundColo
set(handles.y1,'visible','on') r'))
set(handles.y,'visible','on')
set(handles.x,'visible','on') set(hObject,'BackgroundColor','white'
set(handles.yiv,'visible','on') );
set(handles.yiii,'visible','on') end
set(handles.yii,'visible','on')
set(handles.yi,'visible','on')
set(handles.y0,'visible','on')
set(handles.uno,'visible','on')
set(handles.dos,'visible','on') function cci1_Callback(hObject,
set(handles.tres,'visible','on') eventdata, handles)
% hObject handle to cci1 (see
set(handles.cuatro,'visible','on') GCBO)
set(handles.igual,'visible','on') % eventdata reserved - to be defined
set(handles.ci,'visible','on') in a future version of MATLAB
set(handles.ci1,'visible','on') % handles structure with handles
set(handles.ci2,'visible','on') and user data (see GUIDATA)
set(handles.ci3,'visible','on')
set(handles.ci4,'visible','on') % Hints: get(hObject,'String')
set(handles.cci1,'visible','on') returns contents of cci1 as text
set(handles.cci2,'visible','on') %
set(handles.cci3,'visible','on') str2double(get(hObject,'String'))
set(handles.cci4,'visible','on') returns contents of cci1 as a double
set(handles.a,'visible','off')
set(handles.b,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','on') % --- Executes during object
creation, after setting all
properties.
set(handles.resultado,'visible','on') function cci1_CreateFcn(hObject,
eventdata, handles)
set(handles.boton1,'visible','on') % hObject handle to cci1 (see
GCBO)
set(handles.boton2,'visible','off') % eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not
set(handles.boton3,'visible','off') created until after all CreateFcns
called
set(handles.boton4,'visible','off')
end % Hint: edit controls usually have a
white background on Windows.
% --- Executes during object % See ISPC and COMPUTER.
creation, after setting all if ispc &&
properties. isequal(get(hObject,'BackgroundColor'
function ordened_CreateFcn(hObject, ),
eventdata, handles) get(0,'defaultUicontrolBackgroundColo
r'))
set(hObject,'BackgroundColor','white' % Hints: get(hObject,'String')
); returns contents of cci3 as text
end %
str2double(get(hObject,'String'))
returns contents of cci3 as a double

function cci2_Callback(hObject,
eventdata, handles) % --- Executes during object
% hObject handle to cci2 (see creation, after setting all
GCBO) properties.
% eventdata reserved - to be defined function cci3_CreateFcn(hObject,
in a future version of MATLAB eventdata, handles)
% handles structure with handles % hObject handle to cci3 (see
and user data (see GUIDATA) GCBO)
% eventdata reserved - to be defined
in a future version of MATLAB
% Hints: get(hObject,'String') % handles empty - handles not
returns contents of cci2 as text created until after all CreateFcns
% called
str2double(get(hObject,'String'))
returns contents of cci2 as a double
% Hint: edit controls usually have a
white background on Windows.
% See ISPC and COMPUTER.
% --- Executes during object if ispc &&
creation, after setting all isequal(get(hObject,'BackgroundColor'
properties. ),
function cci2_CreateFcn(hObject, get(0,'defaultUicontrolBackgroundColo
eventdata, handles) r'))
% hObject handle to cci2 (see
GCBO) set(hObject,'BackgroundColor','white'
% eventdata reserved - to be defined );
in a future version of MATLAB end
% handles empty - handles not
created until after all CreateFcns
called

% Hint: edit controls usually have a function cci4_Callback(hObject,


white background on Windows. eventdata, handles)
% See ISPC and COMPUTER. % hObject handle to cci4 (see
if ispc && GCBO)
isequal(get(hObject,'BackgroundColor' % eventdata reserved - to be defined
), in a future version of MATLAB
get(0,'defaultUicontrolBackgroundColo % handles structure with handles
r')) and user data (see GUIDATA)

set(hObject,'BackgroundColor','white' % Hints: get(hObject,'String')


); returns contents of cci4 as text
end %
str2double(get(hObject,'String'))
returns contents of cci4 as a double

function cci3_Callback(hObject,
eventdata, handles) % --- Executes during object
% hObject handle to cci3 (see creation, after setting all
GCBO) properties.
% eventdata reserved - to be defined function cci4_CreateFcn(hObject,
in a future version of MATLAB eventdata, handles)
% handles structure with handles % hObject handle to cci4 (see
and user data (see GUIDATA) GCBO)
% eventdata reserved - to be defined t1=get(handles.cci2,'string');
in a future version of MATLAB btt=laplace(bt,t,s);
% handles empty - handles not d2y=diff(sym('Y(t)'),2);
created until after all CreateFcns Y2=laplace(d2y,t,s)
called d1y=diff(sym('Y(t)'),1);
Y1=laplace(d1y,t,s)
% Hint: edit controls usually have a Y1=s*Y-t0;
white background on Windows. Y2=s*Y1-t1;
% See ISPC and COMPUTER. E=Y2+ct*Y1+at*Y-btt;
if ispc && Y=solve(E,Y)
isequal(get(hObject,'BackgroundColor' y=ilaplace(Y,s,t)
),
get(0,'defaultUicontrolBackgroundColo set(handles.resultado,'String',char(y
r')) ))

set(hObject,'BackgroundColor','white' case 3 %orden=3


);
end syms t s Y;
at=get(handles.y,'string');
bt=get(handles.x,'string');
% --- Executes on button press in ct=get(handles.y1,'string');
boton1. dt=get(handles.y2,'string');
function boton1_Callback(hObject, t0=get(handles.cci1,'string');
eventdata, handles) t1=get(handles.cci2,'string');
% hObject handle to boton1 (see t2=get(handles.cci3,'string');
GCBO) btt=laplace(bt,t,s);
% eventdata reserved - to be defined d3y=diff(sym('Y(t)'),3);
in a future version of MATLAB Y3=laplace(d3y,t,s)
% handles structure with handles d2y=diff(sym('Y(t)'),2);
and user data (see GUIDATA) Y2=laplace(d2y,t,s)
%Declaramos las variables d1y=diff(sym('Y(t)'),1);
opcion=str2double(get(handles.ordened Y1=laplace(d1y,t,s)
,'string')); % orden de la ecuacion Y1=s*Y-t0;
switch opcion Y2=s*Y1-t1;
case 1 %orden de la ecuacion=1 Y3=s*Y2-t2;
E=Y3+dt*Y2+ct*Y1+at*Y-btt;
Y=solve(E,Y)
syms t s Y; y=ilaplace(Y,s,t)
at=get(handles.y,'string');
bt=get(handles.x,'string');
t0=get(handles.cci1,'string'); set(handles.resultado,'String',char(y
btt=laplace(bt,t,s); ))

d1y=diff(sym('Y(t)'),1); case 4
Y1=laplace(d1y,t,s)
Y1=s*Y-t0; syms t s Y;
E=Y1+at*Y-btt; at=get(handles.y,'string');
Y=solve(E,Y) bt=get(handles.x,'string');
y=ilaplace(Y,s,t) ct=get(handles.y1,'string');
dt=get(handles.y2,'string');
set(handles.resultado,'String',char(y et=get(handles.y3,'string');
)) t0=get(handles.cci1,'string');
t1=get(handles.cci2,'string');
t2=get(handles.cci3,'string');
t3=get(handles.cci4,'string');
case 2 %orden= 2 btt=laplace(bt,t,s);
d4y=diff(sym('Y(t)'),4);
syms t s Y; Y4=laplace(d4y,t,s)
at=get(handles.y,'string'); d3y=diff(sym('Y(t)'),3);
bt=get(handles.x,'string'); Y3=laplace(d3y,t,s)
ct=get(handles.y1,'string'); d2y=diff(sym('Y(t)'),2);
t0=get(handles.cci1,'string'); Y2=laplace(d2y,t,s)
d1y=diff(sym('Y(t)'),1); % --- Executes on button press in
Y1=laplace(d1y,t,s) boton2.
Y1=s*Y-t0; function boton2_Callback(hObject,
Y2=s*Y1-t1; eventdata, handles)
Y3=s*Y2-t2; % hObject handle to boton2 (see
Y4=s*Y3-t3; GCBO)
E=Y4-et*Y3+dt*Y2+ct*Y1+at*Y-btt; % eventdata reserved - to be defined
Y=solve(E,Y) in a future version of MATLAB
y=ilaplace(Y,s,t) % handles structure with handles
and user data (see GUIDATA)
set(handles.resultado,'String',char(y
)) %Ingreso la funcion
f=get(handles.lapl,'string')
end syms s
%Aplicar la TL
sol=laplace(f,s)
function resultado_Callback(hObject, set(handles.resultado2,'String',char(
eventdata, handles) sol))
% hObject handle to resultado (see % --- Executes on button press in
GCBO) boton3.
% eventdata reserved - to be defined function boton3_Callback(hObject,
in a future version of MATLAB eventdata, handles)
% handles structure with handles % hObject handle to boton3 (see
and user data (see GUIDATA) GCBO)
% eventdata reserved - to be defined
% Hints: get(hObject,'String') in a future version of MATLAB
returns contents of resultado as text % handles structure with handles
% and user data (see GUIDATA)
str2double(get(hObject,'String')) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
returns contents of resultado as a %%%%%%
double %%%%%%%transformada inversa de
laplace%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%
% --- Executes during object %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
creation, after setting all %%%%%%%%%%
properties. %Declara la variable
function resultado_CreateFcn(hObject, syms t
eventdata, handles) %Ingresar la función
% hObject handle to resultado (see f=get(handles.lapl,'string')
GCBO) %til
% eventdata reserved - to be defined sol=ilaplace(f,t)
in a future version of MATLAB
% handles empty - handles not
created until after all CreateFcns set(handles.resultado2,'string',char(
called sol))

% Hint: edit controls usually have a % --- Executes on button press in


white background on Windows. boton4.
% See ISPC and COMPUTER. function boton4_Callback(hObject,
if ispc && eventdata, handles)
isequal(get(hObject,'BackgroundColor' % hObject handle to boton4 (see
), GCBO)
get(0,'defaultUicontrolBackgroundColo % eventdata reserved - to be defined
r')) in a future version of MATLAB
% handles structure with handles
and user data (see GUIDATA)
set(hObject,'BackgroundColor','white'
);
end x=0:0.005:10;
w=get(handles.int,'string');
y=eval(w);
plot(x,y); grid
returns contents of resultado2 as a
double
function lapl_Callback(hObject,
eventdata, handles)
% hObject handle to lapl (see % --- Executes during object
GCBO) creation, after setting all
% eventdata reserved - to be defined properties.
in a future version of MATLAB function
% handles structure with handles resultado2_CreateFcn(hObject,
and user data (see GUIDATA) eventdata, handles)
% hObject handle to resultado2
% Hints: get(hObject,'String') (see GCBO)
returns contents of lapl as text % eventdata reserved - to be defined
% in a future version of MATLAB
str2double(get(hObject,'String')) % handles empty - handles not
returns contents of lapl as a double created until after all CreateFcns
called

% Hint: edit controls usually have a


% --- Executes during object white background on Windows.
creation, after setting all % See ISPC and COMPUTER.
properties. if ispc &&
function lapl_CreateFcn(hObject, isequal(get(hObject,'BackgroundColor'
eventdata, handles) ),
% hObject handle to lapl (see get(0,'defaultUicontrolBackgroundColo
GCBO) r'))
% eventdata reserved - to be defined
in a future version of MATLAB
% handles empty - handles not set(hObject,'BackgroundColor','white'
created until after all CreateFcns );
called end

% Hint: edit controls usually have a


white background on Windows. % --- Executes on button press in
% See ISPC and COMPUTER. pushbutton5.
if ispc && function
isequal(get(hObject,'BackgroundColor' pushbutton5_Callback(hObject,
), eventdata, handles)
get(0,'defaultUicontrolBackgroundColo % hObject handle to pushbutton5
r')) (see GCBO)
% eventdata reserved - to be defined
set(hObject,'BackgroundColor','white' in a future version of MATLAB
); % handles structure with handles
end and user data (see GUIDATA)

% --- Executes on button press in


atras.
function resultado2_Callback(hObject, function atras_Callback(hObject,
eventdata, handles) eventdata, handles)
% hObject handle to resultado2 % hObject handle to atras (see
(see GCBO) GCBO)
% eventdata reserved - to be defined % eventdata reserved - to be defined
in a future version of MATLAB in a future version of MATLAB
% handles structure with handles % handles structure with handles
and user data (see GUIDATA) and user data (see GUIDATA)
set(handles.selec,'visible','on')
% Hints: get(hObject,'String')
returns contents of resultado2 as set(handles.ilaplace,'visible','on')
text
%
str2double(get(hObject,'String'))
set(handles.tdlp,'visible','off')
set(handles.ecuaciones,'visible','on'
) set(handles.tidlp,'visible','off')
set(handles.graf,'visible','off')
set(handles.graficas,'visible','on') set(handles.ed,'visible','off')
set(handles.atras,'visible','on')
set(handles.seno,'visible','off')
set(handles.laplace,'visible','on') set(handles.cos,'visible','off')
set(handles.y3,'visible','off')
set(handles.y2,'visible','off')
set(handles.y1,'visible','off') set(handles.grafec,'visible','off')
set(handles.y,'visible','off') set(handles.int,'visible','off')
set(handles.x,'visible','off') set(handles.tan,'visible','off')
set(handles.yiv,'visible','off') set(handles.sec,'visible','off')
set(handles.yiii,'visible','off')
set(handles.yii,'visible','off') set(handles.atras,'visible','off')
set(handles.yi,'visible','off')
set(handles.y0,'visible','off') set(handles.yigual,'visible','off')
set(handles.uno,'visible','off') set(handles.ordened,'string',' ')
set(handles.dos,'visible','off') set(handles.lapl,'string',' ')
set(handles.tres,'visible','off') set(handles.y3,'string',' ')
set(handles.y2,'string',' ')
set(handles.cuatro,'visible','off') set(handles.y1,'string',' ')
set(handles.y,'string',' ')
set(handles.igual,'visible','off') set(handles.x,'string',' ')
set(handles.cci1,'string',' ')
set(handles.cci2,'string',' ')
set(handles.orden,'visible','off') set(handles.cci3,'string',' ')
set(handles.cci4,'string',' ')
set(handles.ordened,'visible','off') set(handles.resultado,'string','
set(handles.c,'visible','off') ')
set(handles.ci,'visible','off')
set(handles.ci1,'visible','off') set(handles.yigual,'visible','off')
set(handles.ci2,'visible','off') set(handles.flap,'visible','off')
set(handles.ci3,'visible','off')
set(handles.ci4,'visible','off')
set(handles.cci1,'visible','off') set(handles.graficax,'visible','off')
set(handles.cci2,'visible','off')
set(handles.cci3,'visible','off') set(handles.filap,'visible','off')
set(handles.cci4,'visible','off')
set(handles.a,'visible','off') set(handles.borrar,'visible','off')
set(handles.b,'visible','off')
set(handles.ab,'visible','off')
set(handles.res,'visible','off') set(handles.axes2,'visible','off')
x=0
y=x
set(handles.resultado,'visible','off' plot(x,y)
) set(handles.plot,'visible','off')
% --- Executes on button press in
set(handles.boton1,'visible','off') salir.
function salir_Callback(hObject,
set(handles.boton2,'visible','off') eventdata, handles)
% hObject handle to salir (see
GCBO)
set(handles.boton3,'visible','off') % eventdata reserved - to be defined
in a future version of MATLAB
set(handles.boton4,'visible','off') % handles structure with handles
set(handles.res2,'visible','off') and user data (see GUIDATA)
close(deber)
set(handles.resultado2,'visible','off
')
set(handles.lap,'visible','off') % --- If Enable == 'on', executes on
set(handles.lapl,'visible','off') mouse press in 5 pixel border.
% --- Otherwise, executes on mouse
press in 5 pixel border or over % --- Executes on button press in
boton1. tan.
function function tan_Callback(hObject,
boton1_ButtonDownFcn(hObject, eventdata, handles)
eventdata, handles) % hObject handle to tan (see GCBO)
% hObject handle to boton1 (see % eventdata reserved - to be defined
GCBO) in a future version of MATLAB
% eventdata reserved - to be defined % handles structure with handles
in a future version of MATLAB and user data (see GUIDATA)
% handles structure with handles set(handles.seno,'value',0)
and user data (see GUIDATA) set(handles.cos,'value',0)
set(handles.grafec,'value',0)
set(handles.sec,'value',0)
% --- Executes on button press in op=get(handles.tan,'value');
seno. if op==1
function seno_Callback(hObject, x=0:0.2:10;
eventdata, handles) y=tan(x)
% hObject handle to seno (see plot(x,y); grid
GCBO) end
% eventdata reserved - to be defined % Hint: get(hObject,'Value') returns
in a future version of MATLAB toggle state of tan
% handles structure with handles
and user data (see GUIDATA)
set(handles.cos,'value',0) % --- Executes on button press in
set(handles.tan,'value',0) sec.
set(handles.sec,'value',0) function sec_Callback(hObject,
set(handles.grafec,'value',0) eventdata, handles)
op=get(handles.seno,'value'); % hObject handle to sec (see GCBO)
if op==1 % eventdata reserved - to be defined
x=0:0.05:10; in a future version of MATLAB
y=sin(x) % handles structure with handles
plot(x,y); grid and user data (see GUIDATA)
end set(handles.cos,'value',0)
set(handles.tan,'value',0)
% Hint: get(hObject,'Value') returns set(handles.seno,'value',0)
toggle state of seno set(handles.grafec,'value',0)
op=get(handles.sec,'value');
if op==1
x=0:0.2:10;
% --- Executes on button press in y=sec(x);
cos. plot(x,y); grid
function cos_Callback(hObject, end
eventdata, handles) % Hint: get(hObject,'Value') returns
% hObject handle to cos (see GCBO) toggle state of sec
% eventdata reserved - to be defined
in a future version of MATLAB
% handles structure with handles
and user data (see GUIDATA) % --- Executes on button press in
set(handles.seno,'value',0) grafec.
set(handles.tan,'value',0) function grafec_Callback(hObject,
set(handles.sec,'value',0) eventdata, handles)
set(handles.grafec,'value',0) % hObject handle to grafec (see
op=get(handles.cos,'value'); GCBO)
if op==1 % eventdata reserved - to be defined
x=0:0.05:10; in a future version of MATLAB
y=cos(x) % handles structure with handles
plot(x,y); grid and user data (see GUIDATA)
end set(handles.int,'visible','on')
% Hint: get(hObject,'Value') returns set(handles.boton4,'visible','on')
toggle state of cos set(handles.yigual,'visible','on')
set(handles.borrar,'visible','on')
set(handles.cos,'value',0)
set(handles.tan,'value',0) set(handles.ordened,'string',' ')
set(handles.seno,'value',0) set(handles.lapl,'string',' ')
set(handles.sec,'value',0) set(handles.y3,'string',' ')
set(handles.y2,'string',' ')
% Hint: get(hObject,'Value') returns set(handles.y1,'string',' ')
toggle state of grafec set(handles.y,'string',' ')
set(handles.x,'string',' ')
set(handles.cci1,'string',' ')
set(handles.cci2,'string',' ')
set(handles.cci3,'string',' ')
function int_Callback(hObject, set(handles.cci4,'string',' ')
eventdata, handles) set(handles.resultado,'string','
% hObject handle to int (see GCBO) ')
% eventdata reserved - to be defined set(handles.resultado2,'string','
in a future version of MATLAB ')
% handles structure with handles set(handles.int,'string',' ')
and user data (see GUIDATA)

% Hints: get(hObject,'String')
returns contents of int as text % --- Executes during object
% creation, after setting all
str2double(get(hObject,'String')) properties.
returns contents of int as a double function plot_CreateFcn(hObject,
eventdata, handles)
% hObject handle to plot (see
% --- Executes during object GCBO)
creation, after setting all % eventdata reserved - to be defined
properties. in a future version of MATLAB
function int_CreateFcn(hObject, % handles empty - handles not
eventdata, handles) created until after all CreateFcns
% hObject handle to int (see GCBO) called
% eventdata reserved - to be defined
in a future version of MATLAB % Hint: place code in OpeningFcn to
% handles empty - handles not populate plot
created until after all CreateFcns
called
% --- Executes on button press in
% Hint: edit controls usually have a graficax.
white background on Windows. function graficax_Callback(hObject,
% See ISPC and COMPUTER. eventdata, handles)
if ispc && % hObject handle to graficax (see
isequal(get(hObject,'BackgroundColor' GCBO)
), % eventdata reserved - to be defined
get(0,'defaultUicontrolBackgroundColo in a future version of MATLAB
r')) % handles structure with handles
and user data (see GUIDATA)
set(hObject,'BackgroundColor','white' d=get(handles.resultado,'string');
); syms x y;
end ezplot(handles.axes2,d,[-10,20]);

% --- Executes on button press in


borrar.
function borrar_Callback(hObject,
eventdata, handles)
% hObject handle to borrar (see
GCBO)
% eventdata reserved - to be defined
in a future version of MATLAB
% handles structure with handles
and user data (see GUIDATA)

You might also like