Você está na página 1de 12

UNIVERSIDAD TCNICA DE AMBATO

FACULTAD DE INGENIERA CIVIL Y MECNICA


CARRERA DE INGENIERA CIVIL
MODALIDAD PRESENCIAL

ECUACIONES SEPARABLES Y EXACTAS


ECUACIONES DIFERENCIALES
CUARTO SEMESTRE

ABRIL SEPTIEMBRE 2016

GRUPO: 4

ALUMNOS:
RONALD CERVANTES
MARCO MARTNEZ
DANNY SALINAS

DOCENTE:
DR. LIGDAMIS GUTIERREZ

AMBATO ECUADOR
AO 2016

CODIFICACIN
function varargout = grupo4(varargin)
% GRUPO4 M-file for grupo4.fig
%

GRUPO4, by itself, creates a new GRUPO4 or raises the existing

singleton*.

%
%

H = GRUPO4 returns the handle to a new GRUPO4 or the handle to

the existing singleton*.

%
%
local

GRUPO4('CALLBACK',hObject,eventData,handles,...) calls the

%
function named CALLBACK in GRUPO4.M with the given input
arguments.
%
%
the

GRUPO4('Property','Value',...) creates a new GRUPO4 or raises

%
existing singleton*.
pairs are
%
An

Starting from the left, property value

applied to the GUI before grupo4_OpeningFunction gets called.

%
unrecognized property name or invalid value makes property
application
%

stop.

All inputs are passed to grupo4_OpeningFcn via varargin.

%
%
*See GUI Options on GUIDE's Tools menu.
only one
%

Choose "GUI allows

instance to run (singleton)".

%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help grupo4

% Last Modified by GUIDE v2.5 01-Aug-2016 10:38:55

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;
gui_State = struct('gui_Name',
'gui_Singleton',

mfilename, ...
gui_Singleton, ...

'gui_OpeningFcn', @grupo4_OpeningFcn, ...


'gui_OutputFcn',

@grupo4_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
% End initialization code - DO NOT EDIT

% --- Executes just before grupo4 is made visible.


function grupo4_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject

handle to figure

% eventdata

reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% varargin

command line arguments to grupo4 (see VARARGIN)

% Choose default command line output for grupo4


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes grupo4 wait for user response (see UIRESUME)


% uiwait(handles.figure1);
clc;

if strcmp(get(hObject,'Visible'),'off')
logo='sello';
axes(handles.axes1);
handles.imagen=imread('sello','bmp');
imagesc(handles.imagen);
axis off;
end

% --- Outputs from this function are returned to the command line.
function varargout = grupo4_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)

% Get default command line output from handles structure


varargout{1} = handles.output;

% --- Executes on button press in radiobutton1.


function radiobutton1_Callback(hObject, eventdata, handles)
set(handles.radiobutton2,'Value', 0);
set(handles.pushbutton1,'Visible','on')
set(handles.uipanel6,'Visible','off')
set(handles.text26,'Visible','off')
set(handles.uipanel8,'Visible','off')
set(handles.pushbutton2,'Visible','off')
set(handles.text34,'Visible','off')
set(handles.text35,'Visible','off')
set(handles.edit1, 'string', ' ');
set(handles.edit2, 'string', ' ');
set(handles.text7, 'string', ' ');
set(handles.text17, 'string', ' ');
set(handles.text19, 'string', ' ');
set(handles.text23, 'string', ' ');

set(handles.text21, 'string', ' ');


set(handles.text22, 'string', ' ');

set(handles.text21,'Visible','off')
set(handles.text22,'Visible','off')
set(handles.text23,'Visible','off')
set(handles.tet26,'Visible','off')
% hObject

handle to radiobutton1 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton1

% --- Executes on button press in radiobutton2.


function radiobutton2_Callback(hObject, eventdata,handles);
set(handles.radiobutton1,'Value', 0);
set(handles.pushbutton2,'Visible','on');
set(handles.uipanel6,'Visible','off');
set(handles.text34,'Visible','off');
set(handles.uipanel8,'Visible','off');
set(handles.text26,'Visible','off');
set(handles.text23,'Visible','off');
set(handles.pushbutton2,'Visible','on');
set(handles.pushbutton1,'Visible','off');
set(handles.text35,'Visible','off');
set(handles.edit1, 'string', ' ');
set(handles.edit2, 'string', ' ');
set(handles.text28, 'string', ' ');
set(handles.text30, 'string', ' ');
set(handles.text32, 'string', ' ');
set(handles.text21, 'string', ' ');
set(handles.text22, 'string', ' ');

set(handles.text21,'Visible','off')

set(handles.text22,'Visible','off')
set(handles.text34, 'string', ' ');
% hObject

handle to radiobutton2 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton2

function edit3_Callback(hObject, eventdata, handles)


% hObject

handle to edit3 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit3 as text


%
str2double(get(hObject,'String')) returns contents of edit3
as a double

% --- Executes during object creation, after setting all properties.


function edit3_CreateFcn(hObject, eventdata, handles)
% hObject

handle to edit3 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles
called

empty - handles not created until after all CreateFcns

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')
);
end

function edit2_Callback(hObject, eventdata, handles)


% hObject

handle to edit2 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit2 as text


%
str2double(get(hObject,'String')) returns contents of edit2
as a double

% --- Executes during object creation, after setting all properties.


function edit2_CreateFcn(hObject, eventdata, handles)
% hObject

handle to edit2 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles
called

empty - handles not created until after all CreateFcns

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')
);
end

function edit1_Callback(hObject, eventdata, handles)


% 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)

% Hints: get(hObject,'String') returns contents of edit1 as text


%
str2double(get(hObject,'String')) returns contents of edit1
as a double

% --- Executes during object creation, after setting all properties.


function edit1_CreateFcn(hObject, eventdata, handles)

% hObject

handle to edit1 (see GCBO)

% eventdata

reserved - to be defined in a future version of MATLAB

% handles
called

empty - handles not created until after all CreateFcns

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')
);
end

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
syms x y m n;
m = get(handles.edit1,'string');
n = get(handles.edit2,'string');
m1=diff(m,y);

n1=diff(n,x);
if m1 == n1
set(handles.text22,'Visible','off');
set(handles.text21,'Visible','on');
set(handles.uipanel6,'Visible','on');
set(handles.text23,'Visible','on');
set(handles.text26,'Visible','on');
set(handles.text21,'string','Si es exacta');
h=int(m,x);
o=char(h);
set(handles.text7,'string',o);
t=diff(o,y);
l=char(t);
set(handles.text17,'string',l);

w=(n-t);
r=int(w,y);
p=char(r);
set(handles.text19,'string',p);
j=(h+r);
u=char(j);
set(handles.text23,'string',u);
elseif n1 == m1
set(handles.text21,'string','Si es exacta');
else
set(handles.uipanel6,'Visible','off')
set(handles.text21,'Visible','off');
set(handles.text22,'Visible','on');
set(handles.text23,'Visible','off');
set(handles.text26,'Visible','off');
set(handles.text22,'string','Inexacta');
end

% 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)

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
syms x y m1 n1 R C A B S K;
m = get(handles.edit1,'string');
n = get(handles.edit2,'string');
m1=diff(m,y);
n1=diff(n,x);
if m1 == 0 & n1 == 0
set(handles.text22,'Visible','off')

set(handles.uipanel8,'Visible','on');
set(handles.text34,'Visible','on');

set(handles.text35,'Visible','on');
set(handles.text21,'Visible','on');
set(handles.text21,'string','Si es separable');
A=int(m,x);
B=int(n,y);
E=char(A);
D=char(B);
P=char(A+B);
set(handles.text28,'string',E);
set(handles.text30,'string',D);
set(handles.text32,'string',P);
syms x y C;
S=solve((A+B-C),y);
M=char(S);
set(handles.text34,'string',M);

elseif n1 == 0 & m1==0


set(handles.text21,'string','Si es separable');
else

set(handles.uipanel8,'Visible','off');
set(handles.text34,'Visible','off');
set(handles.text35,'Visible','off');
set(handles.text21,'Visible','off');
set(handles.text22,'Visible','on');
set(handles.text22,'string','NO es separable');
end
% 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)

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
close all

% 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)

Você também pode gostar