Professional Documents
Culture Documents
TEMA:
“DESPACHO ECONOMICO”
ASIGNATURA:
PROBLEMA DE GENERACIÓN
ESTUDIANTE:
HIDROVO INTRIAGO VICTOR ANTONIO
NIVEL:
DÉCIMO
PARALELO:
“A”
DOCENTE:
ING. LUCIO VALAREZO
PERIODO LECTIVO:
MAYO - AGOSTO 2019
CODIGO MATLAB
function varargout = INTERFAZ(varargin)
% INTERFAZ M-file for INTERFAZ.fig
% INTERFAZ, by itself, creates a new INTERFAZ or raises the
existing
% singleton*.
%
% H = INTERFAZ returns the handle to a new INTERFAZ or the handle
to
% the existing singleton*.
%
% INTERFAZ('CALLBACK',hObject,eventData,handles,...) calls the
local
% function named CALLBACK in INTERFAZ.M with the given input
arguments.
%
% INTERFAZ('Property','Value',...) creates a new INTERFAZ or
raises the
% existing singleton*. Starting from the left, property value
pairs are
% applied to the GUI before INTERFAZ_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to INTERFAZ_OpeningFcn via
varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows
only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Outputs from this function are returned to the command line.
function varargout = INTERFAZ_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)
valor=str2double(get(handles.edit1,'string') );
PD=str2double(get(handles.edit2,'string') );
pot1= ((Cco-5.3)/0.008);
pot2= ((Cco-5.5)/0.012);
pot3= ((Cco-5.8)/0.018);
set(handles.edit4,'string',num2str(pot1) );
set(handles.edit5,'string',num2str(pot2) );
set(handles.edit6,'string',num2str(pot3) );