Sunteți pe pagina 1din 78

qwertyuiopasdfghjklzxcvbnmqw

ertyuiopasdfghjklzxcvbnmqwert
UAGRM
yuiopasdfghjklzxcvbnmqwertyui
Maestría en Explotación de Hidrocarburos

opasdfghjklzxcvbnmqwertyuiopa
Código de programación MATLAB

sdfghjklzxcvbnmqwertyuiopasdf
Calculo de Factor Z, factor volumétrico,
propiedades de la Roca,

ghjklzxcvbnmqwertyuiopasdfghj
Integrantes:
Marco Antonio Villarroel La Torre
Cassandra Ocampo Veramendi

klzxcvbnmqwertyuiopasdfghjklz
xcvbnmqwertyuiopasdfghjklzxcv
bnmqwertyuiopasdfghjklzxcvbn
mqwertyuiopasdfghjklzxcvbnmq
wertyuiopasdfghjklzxcvbnmqwe
rtyuiopasdfghjklzxcvbnmqwerty
uiopasdfghjklzxcvbnmqwertyuio
pasdfghjklzxcvbnmqwertyuiopas
dfghjklzxcvbnmqwertyuiopasdfg
CODIGO DE INICIO

function varargout = incio(varargin)


% INCIO MATLAB code for incio.fig
% INCIO, by itself, creates a new INCIO or raises the existing
% singleton*.
%
% H = INCIO returns the handle to a new INCIO or the handle to
% the existing singleton*.
%
% INCIO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in INCIO.M with the given input arguments.
%
% INCIO('Property','Value',...) creates a new INCIO or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before incio_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to incio_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

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

% Last Modified by GUIDE v2.5 24-May-2014 04:43:11

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @incio_OpeningFcn, ...
'gui_OutputFcn', @incio_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 incio is made visible.


function incio_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 incio (see VARARGIN)

% Choose default command line output for incio


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
Gas1
close incio

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
Z
close incio

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
Correccion_inertes
close incio

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
opc=questdlg('¿Desea salir del programa?','SALIR','Si','No','No');
if strcmp(opc,'No')
return;
end
clear,clc,close all

% --- Executes on button press in pushbutton5.


function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Propiedad_Roca
Close incio

% --- Executes on button press in pushbutton6.


function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Bg
close incio
CODIGO DE FORMULARIO Gas1

function varargout = Gas1(varargin)


% GAS1 MATLAB code for Gas1.fig
% GAS1, by itself, creates a new GAS1 or raises the existing
% singleton*.
%
% H = GAS1 returns the handle to a new GAS1 or the handle to
% the existing singleton*.
%
% GAS1('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GAS1.M with the given input arguments.
%
% GAS1('Property','Value',...) creates a new GAS1 or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Gas1_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Gas1_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

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

% Last Modified by GUIDE v2.5 23-May-2014 18:59:12

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Gas1_OpeningFcn, ...
'gui_OutputFcn', @Gas1_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 Gas1 is made visible.


function Gas1_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 Gas1 (see VARARGIN)
%para colocar imagen
background=imread('background.jpg');
axes(handles.background);
axis off;
imshow(background);
% Choose default command line output for Gas1
handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
C1=xlsread('Croma',1,'E5');
set(handles.edit1,'String',C1);
C2=xlsread('Croma',1,'E6');
set(handles.edit2,'String',C2);
C3=xlsread('Croma',1,'E7');
set(handles.edit3,'String',C3);
iC4=xlsread('Croma',1,'E8');
set(handles.edit4,'String',iC4);
nC4=xlsread('Croma',1,'E9');
set(handles.edit5,'String',nC4);
iC5=xlsread('Croma',1,'E10');
set(handles.edit6,'String',iC5);
C6=xlsread('Croma',1,'E11');
set(handles.edit7,'String',C6);
C7=xlsread('Croma',1,'E12');
set(handles.edit8,'String',C7);
C7=xlsread('Croma',1,'E13');
set(handles.edit9,'String',C7);
C8=xlsread('Croma',1,'E14');
set(handles.edit10,'String',C8);
C9=xlsread('Croma',1,'E15');
set(handles.edit11,'String',C9);
Co2=xlsread('Croma',1,'E16');
set(handles.edit12,'String',Co2);
SH2=xlsread('Croma',1,'E17');
set(handles.edit13,'String',SH2);
N2=xlsread('Croma',1,'E18');
set(handles.edit14,'String',N2);

function edit30_Callback(hObject, eventdata, handles)


% hObject handle to edit30 (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 edit30 as text


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

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


function edit30_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit30 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit31_Callback(hObject, eventdata, handles)


% hObject handle to edit31 (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 edit31 as text


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

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


function edit31_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit31 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit29_Callback(hObject, eventdata, handles)


% hObject handle to edit29 (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 edit29 as text


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

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


function edit29_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit29 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
a=str2double(get(handles.edit1,'String'));
b=str2double(get(handles.edit2,'String'));
c=str2double(get(handles.edit3,'String'));
d=str2double(get(handles.edit4,'String'));
e=str2double(get(handles.edit5,'String'));
f=str2double(get(handles.edit6,'String'));
g=str2double(get(handles.edit7,'String'));
h=str2double(get(handles.edit8,'String'));
i=str2double(get(handles.edit9,'String'));
j=str2double(get(handles.edit10,'String'));
k=str2double(get(handles.edit11,'String'));
l=str2double(get(handles.edit12,'String'));
m=str2double(get(handles.edit13,'String'));
n=str2double(get(handles.edit14,'String'));
%Suma Totales
Totales=(a+b+c+d+e+f+g+h+i+j+k+l+m+n);
set(handles.text83,'String',Totales);
guidata(hObject,handles);

%Para calcular la Peso molecular


PESO=((a*16.04)+(b*30.07)+(c*44.09)+(d*58.12)+(e*58)+(f*72.15)+(g*72.15)+
(h*86.17)+(i*100.2)+(j*114.2)+(k*128.3)+(l*44.2)+(m*34.08)+(n*28.02));
set(handles.text79,'String',PESO);

%Para calcular la Gravedad Espesifica


GRAVEDAD=(PESO/28.97);
set(handles.text80,'String',GRAVEDAD);

%Para calcular la Presion seudocritica


Pres=str2double(get(handles.edit30,'String'));
PresionPR=(Pres/(((a*673.1)+(b*708.3)+(c*617.4)+(d*529.1)+(e*550.1)+(f*48
3.5)+(g*489.8)+(h*440.1)+(i*395.9)+(j*362.2)+(k*334.0)+(l*1070.2)+(m*1306
.3)+(n*492.2))));
set(handles.text77,'String',PresionPR);
guidata(hObject,handles);

%Para calcular la temperatura seudocritica


Temp=str2double(get(handles.edit31,'String'));
TemperaturaPR=(Temp/(((a*343.2)+(b*349.9)+(c*666)+(d*734.6)+(e*765.7)+(f*
829.6)+(g*846.2)+(h*914.2)+(i*972.4)+(j*1024.9)+(k*1073.0)+(l*547.5)+(m*6
72.4)+(n*227.01))));
set(handles.text78,'String',TemperaturaPR);
guidata(hObject,handles);

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
opc=questdlg('¿Desea salir del programa?','SALIR','Si','No','No');
if strcmp(opc,'No')
return;
end
clear,clc,close all

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Limpia=' ';
set(handles.edit1,'String',Limpia);
set(handles.edit2,'String',Limpia);
set(handles.edit3,'String',Limpia);
set(handles.edit4,'String',Limpia);
set(handles.edit5,'String',Limpia);
set(handles.edit6,'String',Limpia);
set(handles.edit7,'String',Limpia);
set(handles.edit8,'String',Limpia);
set(handles.edit9,'String',Limpia);
set(handles.edit10,'String',Limpia);
set(handles.edit11,'String',Limpia);
set(handles.edit12,'String',Limpia);
set(handles.edit13,'String',Limpia);
set(handles.edit14,'String',Limpia);
set(handles.edit30,'String',Limpia);
set(handles.edit34,'String',Limpia);
set(handles.edit31,'String',Limpia);
set(handles.text77,'String',Limpia);
set(handles.text78,'String',Limpia);
set(handles.text79,'String',Limpia);
set(handles.text80,'String',Limpia);
set(handles.text81,'String',Limpia);
set(handles.text82,'String',Limpia);
set(handles.text83,'String',Limpia);

function edit34_Callback(hObject, eventdata, handles)


% hObject handle to edit34 (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 edit34 as text


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

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


function edit34_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit34 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (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 edit4 as text


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

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


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit5_Callback(hObject, eventdata, handles)


% hObject handle to edit5 (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 edit5 as text


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

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


function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit6_Callback(hObject, eventdata, handles)


% hObject handle to edit6 (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 edit6 as text


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

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


function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit7_Callback(hObject, eventdata, handles)


% hObject handle to edit7 (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 edit7 as text


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

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


function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit8_Callback(hObject, eventdata, handles)


% hObject handle to edit8 (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 edit8 as text


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

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


function edit8_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit9_Callback(hObject, eventdata, handles)


% hObject handle to edit9 (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 edit9 as text


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

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


function edit9_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit10_Callback(hObject, eventdata, handles)


% hObject handle to edit10 (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 edit10 as text


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

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


function edit10_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit11_Callback(hObject, eventdata, handles)


% hObject handle to edit11 (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 edit11 as text


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

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


function edit11_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit12_Callback(hObject, eventdata, handles)


% hObject handle to edit12 (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 edit12 as text


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

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


function edit12_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit13_Callback(hObject, eventdata, handles)


% hObject handle to edit13 (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 edit13 as text


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

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


function edit13_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit13 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit14_Callback(hObject, eventdata, handles)


% hObject handle to edit14 (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 edit14 as text


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

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


function edit14_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit14 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

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


function background_CreateFcn(hObject, eventdata, handles)
% hObject handle to background (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

% Hint: place code in OpeningFcn to populate background

% --- Executes during object deletion, before destroying properties.


function edit34_DeleteFcn(hObject, eventdata, handles)
% hObject handle to edit34 (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 pushbutton8.


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

%Calculo de la densidad
a=str2double(get(handles.edit1,'String'));
b=str2double(get(handles.edit2,'String'));
c=str2double(get(handles.edit3,'String'));
d=str2double(get(handles.edit4,'String'));
e=str2double(get(handles.edit5,'String'));
f=str2double(get(handles.edit6,'String'));
g=str2double(get(handles.edit7,'String'));
h=str2double(get(handles.edit8,'String'));
i=str2double(get(handles.edit9,'String'));
j=str2double(get(handles.edit10,'String'));
k=str2double(get(handles.edit11,'String'));
l=str2double(get(handles.edit12,'String'));
m=str2double(get(handles.edit13,'String'));
n=str2double(get(handles.edit14,'String'));
%Para calcular la Peso molecular
PESO=((a*16.04)+(b*30.07)+(c*44.09)+(d*58.12)+(e*58)+(f*72.15)+(g*72.15)+
(h*86.17)+(i*100.2)+(j*114.2)+(k*128.3)+(l*44.2)+(m*34.08)+(n*28.02));
%Para calcular la Presion seudocritica
Pres=str2double(get(handles.edit30,'String'));
PresionPR=(Pres/(((a*673.1)+(b*708.3)+(c*617.4)+(d*529.1)+(e*550.1)+(f*48
3.5)+(g*489.8)+(h*440.1)+(i*395.9)+(j*362.2)+(k*334.0)+(l*1070.2)+(m*1306
.3)+(n*492.2))));
set(handles.text77,'String',PresionPR);
guidata(hObject,handles);
%Para calcular la temperatura seudocritica
Temp=str2double(get(handles.edit31,'String'));
TemperaturaPR=(Temp/(((a*343.2)+(b*349.9)+(c*666)+(d*734.6)+(e*765.7)+(f*
829.6)+(g*846.2)+(h*914.2)+(i*972.4)+(j*1024.9)+(k*1073.0)+(l*547.5)+(m*6
72.4)+(n*227.01))));
set(handles.text78,'String',TemperaturaPR);
guidata(hObject,handles);
Z=str2double(get(handles.edit34,'String'));
Densidad=(PESO*Pres)/(10.73*Temp*Z);
set(handles.text81,'String',Densidad);
%Calculo del vol Espesifico
Vol=1/Densidad;
set(handles.text82,'String',Vol);
guidata(hObject,handles);

% --- Executes on button press in pushbutton9.


function pushbutton9_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%Abre el Convertidor de unidades
Bg
close Gas1

% --- Executes on button press in pushbutton10.


function pushbutton10_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
C1=str2double(get(handles.edit1,'String'));
C2=str2double(get(handles.edit2,'String'));
C3=str2double(get(handles.edit3,'String'));
iC4=str2double(get(handles.edit4,'String'));
nC4=str2double(get(handles.edit5,'String'));
iC5=str2double(get(handles.edit6,'String'));
nC5=str2double(get(handles.edit7,'String'));
C6=str2double(get(handles.edit8,'String'));
C7=str2double(get(handles.edit9,'String'));
C8=str2double(get(handles.edit10,'String'));
C9=str2double(get(handles.edit11,'String'));
CO2=str2double(get(handles.edit12,'String'));
SH2=str2double(get(handles.edit13,'String'));
N=str2double(get(handles.edit14,'String'));
PR=str2double(get(handles.edit30,'String'));
TEM=str2double(get(handles.edit31,'String'));
Z=str2double(get(handles.edit34,'String'));
PM=str2double(get(handles.text79,'String'));
GE=str2double(get(handles.text80,'String'));
D=str2double(get(handles.text81,'String'));
VE=str2double(get(handles.text82,'String'));
Ppr=str2double(get(handles.text77,'String'));
Tpr=str2double(get(handles.text78,'String'));
xlswrite('Expor.xlsx',C1,1,'E5');
xlswrite('Expor.xlsx',C2,1,'E6');
xlswrite('Expor.xlsx',C3,1,'E7');
xlswrite('Expor.xlsx',iC4,1,'E8');
xlswrite('Expor.xlsx',nC4,1,'E9');
xlswrite('Expor.xlsx',iC5,1,'E10');
xlswrite('Expor.xlsx',nC5,1,'E11');
xlswrite('Expor.xlsx',C6,1,'E12');
xlswrite('Expor.xlsx',C7,1,'E13');
xlswrite('Expor.xlsx',C8,1,'E14');
xlswrite('Expor.xlsx',C9,1,'E15');
xlswrite('Expor.xlsx',CO2,1,'E16');
xlswrite('Expor.xlsx',SH2,1,'E17');
xlswrite('Expor.xlsx',N,1,'E18');
xlswrite('Expor.xlsx',PR,1,'H5');
xlswrite('Expor.xlsx',TEM,1,'H6');
xlswrite('Expor.xlsx',Z,1,'H9');
xlswrite('Expor.xlsx',PM,1,'H7');
xlswrite('Expor.xlsx',GE,1,'H8');
xlswrite('Expor.xlsx',D,1,'H10');
xlswrite('Expor.xlsx',VE,1,'H11');
xlswrite('Expor.xlsx',Ppr,1,'H12');
xlswrite('Expor.xlsx',Tpr,1,'H13');

% --- Executes on mouse press over axes background.


function background_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to background (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 pushbutton11.


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

% --- Executes on button press in pushbutton12.


function pushbutton12_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
incio
close Gas1
CODIGO DE FORMULARIO Calculo Z POR CORRELACION
function varargout = Z(varargin)
% Z MATLAB code for Z.fig
% Z, by itself, creates a new Z or raises the existing
% singleton*.
%
% H = Z returns the handle to a new Z or the handle to
% the existing singleton*.
%
% Z('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in Z.M with the given input arguments.
%
% Z('Property','Value',...) creates a new Z or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Z_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Z_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

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

% Last Modified by GUIDE v2.5 24-May-2014 01:10:54

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Z_OpeningFcn, ...
'gui_OutputFcn', @Z_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 Z is made visible.


function Z_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 Z (see VARARGIN)

% Choose default command line output for Z


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
Tpr=str2double(get(handles.edit2,'String'));
Ppr=str2double(get(handles.edit1,'String'));
syms x;
P1=(0.27*Ppr)/(x*Tpr);
x0=1;
tol=0.000010;
f=1+((0.315+(-1.047/Tpr)+(-0.578/Tpr))*P1)+((0.6816+(-
0.6123/Tpr))*(P1^2))+((-0.6123*-
0.10488*(P1^5))/Tpr)+((0.68157*(P1^2))*(1+(0.68446*(P1^2))))/((Tpr^3)*(2.
718^(0.68446*(P1^2))))-x;
i=1;
fx(i)=x0;
f1=subs(f,x,fx(i));
z=diff(f);
d=subs(z,x,fx(i));
ea(1)=100;
while abs(ea(i))>=tol;
fx(i+1)=fx(i)-f1/d; f1=subs(f,x,fx(i+1)); d=subs(z,x,fx(i+1));
ea(i+1)=abs((fx(i+1)-fx(i))/fx(i+1)*100);
i=i+1;
end
fprintf('i fx(i) Error aprox (i) \n');
for j=1:i;
fprintf('%2d \t %11.7f \t %7.3f \n',j-1,fx(j),ea(j));

set(handles.text6,'String',fx(i) );

end

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
Tpr=str2double(get(handles.edit2,'String'));
Ppr=str2double(get(handles.edit1,'String'));
syms x;
P1=(0.27*Ppr)/(x*Tpr);
x0=1;
tol=0.000010;
f=x-(1+((0.3265+(-1.07/Tpr)+(-0.5339/(Tpr^3))+(0.01569/(Tpr^4))+(-
0.05165/(Tpr^5)))*P1)+((0.5475+(-0.7361/Tpr)+(0.1844/(Tpr^2)))* (P1^2))-
(0.1056*((-0.7361/Tpr)+(0.1844/(Tpr^2)))* (P1^5))+(0.6134*(1+(0.7210*(
P1^2)))/((Tpr^3)*(2.718^(0.7210*( P1^2))))));
i=1;
fx(i)=x0;
f1=subs(f,x,fx(i));
z=diff(f);
d=subs(z,x,fx(i));
ea(1)=100;
while abs(ea(i))>=tol;
fx(i+1)=fx(i)-f1/d; f1=subs(f,x,fx(i+1)); d=subs(z,x,fx(i+1));
ea(i+1)=abs((fx(i+1)-fx(i))/fx(i+1)*100);
i=i+1;
end
fprintf('i fx(i) Error aprox (i) \n');
for j=1:i;
fprintf('%2d \t %11.7f \t %7.3f \n',j-1,fx(j),ea(j));

set(handles.text8,'String',fx(i) );

end

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Limpia=' ';
set(handles.edit1,'String',Limpia);
set(handles.edit2,'String',Limpia);
set(handles.text6,'String',Limpia);
set(handles.text8,'String',Limpia);
set(handles.text13,'String',Limpia);

% --- Executes on button press in pushbutton5.


function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
opc=questdlg('¿Desea salir del programa?','SALIR','Si','No','No');
if strcmp(opc,'No')
return;
end
clear,clc,close all

% --- Executes on button press in pushbutton6.


function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
incio
close Z

% --- Executes on button press in pushbutton7.


function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Tpr=str2double(get(handles.edit2,'String'));
Ppr=str2double(get(handles.edit1,'String'));
syms x;
x0=1;
tol=0.0001;
f=x-(1-(3.52*Ppr/(10^(0.9813*Tpr)))+(0.274*(Ppr^2)/( 10^(0.8157*Tpr))));
i=1;
fx(i)=x0;
f1=subs(f,x,fx(i));
z=diff(f);
d=subs(z,x,fx(i));
ea(1)=100;
while abs(ea(i))>=tol;
fx(i+1)=fx(i)-f1/d; f1=subs(f,x,fx(i+1)); d=subs(z,x,fx(i+1));
ea(i+1)=abs((fx(i+1)-fx(i))/fx(i+1)*100);
i=i+1;
end
fprintf('i fx(i) Error aprox (i) \n');
for j=1:i;
fprintf('%2d \t %11.7f \t %7.3f \n',j-1,fx(j),ea(j));

set(handles.text13,'String',fx(i) );

end
function edit7_Callback(hObject, eventdata, handles)
% hObject handle to edit7 (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 edit7 as text


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

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


function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
CODIGO DE FORMULARIO Calculo Z POR CORRECCION

function varargout = Correccion_inertes(varargin)


% CORRECCION_INERTES MATLAB code for Correccion_inertes.fig
% CORRECCION_INERTES, by itself, creates a new CORRECCION_INERTES or
raises the existing
% singleton*.
%
% H = CORRECCION_INERTES returns the handle to a new
CORRECCION_INERTES or the handle to
% the existing singleton*.
%
% CORRECCION_INERTES('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in CORRECCION_INERTES.M with the given
input arguments.
%
% CORRECCION_INERTES('Property','Value',...) creates a new
CORRECCION_INERTES or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Correccion_inertes_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Correccion_inertes_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

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

% Last Modified by GUIDE v2.5 24-May-2014 00:14:58

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Correccion_inertes_OpeningFcn, ...
'gui_OutputFcn', @Correccion_inertes_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 Correccion_inertes is made visible.


function Correccion_inertes_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 Correccion_inertes (see VARARGIN)

% Choose default command line output for Correccion_inertes


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
Limpia=' ';
set(handles.edit1,'String',Limpia);
set(handles.edit2,'String',Limpia);
set(handles.edit3,'String',Limpia);
set(handles.edit4,'String',Limpia);
set(handles.edit5,'String',Limpia);
set(handles.edit6,'String',Limpia);
set(handles.edit9,'String',Limpia);
set(handles.edit11,'String',Limpia);
set(handles.edit12,'String',Limpia);
set(handles.text19,'String',Limpia);
set(handles.text20,'String',Limpia);
set(handles.text24,'String',Limpia);
set(handles.text25,'String',Limpia);
set(handles.text69,'String',Limpia);
set(handles.text70,'String',Limpia);
set(handles.text76,'String',Limpia);
set(handles.text75,'String',Limpia);

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (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 edit4 as text


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

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


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit5_Callback(hObject, eventdata, handles)


% hObject handle to edit5 (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 edit5 as text


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

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


function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit6_Callback(hObject, eventdata, handles)
% hObject handle to edit6 (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 edit6 as text


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

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


function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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
A=str2double(get(handles.edit1,'String'));
G=get(handles.radiobutton1,'Value');
if G==1
set(handles.edit1,'String', A/28.97);
end
H=get(handles.radiobutton2,'Value');
if H==1
set(handles.edit1,'String', A);
end

% --- 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 empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
opc=questdlg('¿Desea salir del programa?','SALIR','Si','No','No');
if strcmp(opc,'No')
return;
end
clear,clc,close all

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
A=str2double(get(handles.edit1,'String'));
B=str2double(get(handles.edit2,'String'));
C=str2double(get(handles.edit3,'String'));
D=str2double(get(handles.edit4,'String'));
E=str2double(get(handles.edit5,'String'));
F=str2double(get(handles.edit6,'String'));
J=str2double(get(handles.edit11,'String'));
K=str2double(get(handles.edit12,'String'));
Z=str2double(get(handles.edit9,'String'));
%Calculo de la presion Corregida
Pcorregida=(J+(4.4*B)+(6*C)-(1.7*D));
%Calculo de la Temperatura Corregida
Tcorregida=(K+(0.8*B)+(1.3*C)-(2.5*D));
%Calculo de la presion pseudoreducida
Ppr=E/Pcorregida;
set(handles.text19,'String',Ppr);
%Calculo de la Temperaturan pseudoreducida
Tpr=F/Tcorregida;
set(handles.text20,'String',Tpr);
guidata(hObject,handles);

function edit9_Callback(hObject, eventdata, handles)


% hObject handle to edit9 (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 edit9 as text


% str2double(get(hObject,'String')) returns contents of edit9 as a
double
% --- Executes during object creation, after setting all properties.
function edit9_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton5.


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

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
A=str2double(get(handles.edit1,'String'));
E=str2double(get(handles.edit5,'String'));
F=str2double(get(handles.edit6,'String'));
Z=str2double(get(handles.edit9,'String'));
%Calculo de la densidad
D=((A*28.96*E)/(10.73*F*Z));
set(handles.text24,'String',D);
VE=1/D;
set(handles.text25,'String',VE);
guidata(hObject,handles);

function edit10_Callback(hObject, eventdata, handles)


% hObject handle to edit10 (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 edit10 as text


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

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


function edit10_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit11_Callback(hObject, eventdata, handles)


% hObject handle to edit11 (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 edit11 as text


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

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


function edit11_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit12_Callback(hObject, eventdata, handles)


% hObject handle to edit12 (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 edit12 as text


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

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


function edit12_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit12 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton7.


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

% --- Executes on button press in pushbutton11.


function pushbutton11_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton11 (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 pushbutton12.


function pushbutton12_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton12 (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 pushbutton13.


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

% --- Executes on button press in pushbutton14.


function pushbutton14_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton14 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
A=str2double(get(handles.edit1,'String'));
CO2=str2double(get(handles.edit3,'String'));
HS2=str2double(get(handles.edit2,'String'));
N=str2double(get(handles.edit4,'String'));
P=str2double(get(handles.edit5,'String'));
T=str2double(get(handles.edit6,'String'));

G=get(handles.radiobutton3,'Value');
if G==1
%Calculo de la presion seudocritica
Psc=677+(15*A)-(37.5*(A^2));
Tsc=168+(325*A)-(12.5*(A^2));
B=HS2+CO2;
C=HS2;
Fsk=(120*((B^(0.9))-(B^(1.6))))+(15*((C^(0.5))-(C^(4))));
Tsc1=Tsc-Fsk;
Psc1=(Psc*Tsc1)/(Tsc+(C*(1-C))*Fsk);
Ppr=P/Psc1;
set(handles.text70,'String',Ppr);
Tpr=T/Tsc1;
set(handles.text69,'String',Tpr);
end
H=get(handles.radiobutton4,'Value');
if H==1
Psc=706+(51.7*A)-(11.1*(A^2));
Tsc=187+(330*A)-(71.5*(A^2));
B=HS2+CO2;
C=HS2;
Fsk=(120*((B^(0.9))-(B^(1.6))))+(15*((C^(0.5))-(C^(4))));
Tsc1=Tsc-Fsk;
Psc1=(Psc*Tsc1)/(Tsc+(C*(1-C))*Fsk);
Ppr=P/Psc1;
set(handles.text70,'String',Ppr);
Tpr=T/Tsc1;
set(handles.text69,'String',Tpr);
end
G=get(handles.radiobutton3,'Value');
if G==1
%Calculo de la presion seudocritica
Psc=677+(15*A)-(37.5*(A^2));
Tsc=168+(325*A)-(12.5*(A^2));
Tsc2=Tsc-(80*CO2)+(130*HS2)-(150*N);
Tpr2=T/Tsc2;
set(handles.text75,'String',Tpr2);
Psc2=Psc-(440*CO2)+(600*HS2)-(170*N);
Ppr2=P/Psc2;
set(handles.text76,'String',Ppr2);
end
H=get(handles.radiobutton4,'Value');
if H==1
Psc=706+(51.7*A)-(11.1*(A^2));
Tsc=187+(330*A)-(71.5*(A^2));;
Tsc2=Tsc-(80*CO2)+(130*HS2)-(250*N);
Tpr2=T/Tsc2;
set(handles.text75,'String',Tpr2);
Psc2=Psc+(440*CO2)+(600*HS2)-(170*N);
Ppr2=P/Psc2;
set(handles.text76,'String',Ppr2);
end
guidata(hObject,handles);

% --- Executes on button press in pushbutton16.


function pushbutton16_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton16 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
incio
close Correccion_inertes
CODIGO DE FORMULARIO CALCULO FACTOR
VOLUMÉTRICO

function varargout = Bg(varargin)


% BG MATLAB code for Bg.fig
% BG, by itself, creates a new BG or raises the existing
% singleton*.
%
% H = BG returns the handle to a new BG or the handle to
% the existing singleton*.
%
% BG('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in BG.M with the given input arguments.
%
% BG('Property','Value',...) creates a new BG or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Bg_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Bg_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

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

% Last Modified by GUIDE v2.5 24-May-2014 01:57:48

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Bg_OpeningFcn, ...
'gui_OutputFcn', @Bg_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 Bg is made visible.


function Bg_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 Bg (see VARARGIN)

% Choose default command line output for Bg


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (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 edit4 as text


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

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


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
P=str2double(get(handles.edit2,'String'));
T=str2double(get(handles.edit3,'String'));
Z=str2double(get(handles.edit4,'String'));
%Calculo Bg1
Bg1=0.02829*(Z*T/P);
set(handles.text8,'String',Bg1);
%Calculo Bg2
Bg2=0.00504*(Z*T/P);
set(handles.text10,'String',Bg2);

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
Gas1
close Bg

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
incio
Close Bg

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
CODIGO DE FORMULARIO CALCULO PROPIEDADES DE LA
ROCA

function varargout = Propiedad_Roca(varargin)


% PROPIEDAD_ROCA MATLAB code for Propiedad_Roca.fig
% PROPIEDAD_ROCA, by itself, creates a new PROPIEDAD_ROCA or raises
the existing
% singleton*.
%
% H = PROPIEDAD_ROCA returns the handle to a new PROPIEDAD_ROCA or
the handle to
% the existing singleton*.
%
% PROPIEDAD_ROCA('CALLBACK',hObject,eventData,handles,...) calls the
local
% function named CALLBACK in PROPIEDAD_ROCA.M with the given input
arguments.
%
% PROPIEDAD_ROCA('Property','Value',...) creates a new
PROPIEDAD_ROCA or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Propiedad_Roca_OpeningFcn gets called.
An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Propiedad_Roca_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

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

% Last Modified by GUIDE v2.5 24-May-2014 04:45:43

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Propiedad_Roca_OpeningFcn, ...
'gui_OutputFcn', @Propiedad_Roca_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 Propiedad_Roca is made visible.


function Propiedad_Roca_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 Propiedad_Roca (see VARARGIN)

% Choose default command line output for Propiedad_Roca


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (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 edit4 as text


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

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


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit5_Callback(hObject, eventdata, handles)


% hObject handle to edit5 (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 edit5 as text


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

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


function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit6_Callback(hObject, eventdata, handles)


% hObject handle to edit6 (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 edit6 as text


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

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


function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton1.


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
A=str2double(get(handles.edit1,'String'));
B=str2double(get(handles.edit2,'String'));
C=str2double(get(handles.edit3,'String'));
D=str2double(get(handles.edit4,'String'));
E=str2double(get(handles.edit6,'String'));
F=str2double(get(handles.edit5,'String'));
%Porosidad Absoluta
Ab=(A-B)*100/A;
set(handles.text11,'String',Ab);
%Porosidad Efectiva
Pe=C*100/A;
set(handles.text12,'String',Pe);
%Saturacion oil
So=D/C;
set(handles.text16,'String',So);
%Saturacion Gas
Sg=E/C;
set(handles.text20,'String',Sg);
%Saturacion Agua
Sa=F/C;
set(handles.text17,'String',Sa);
Total=Sa+Sg+So;
set(handles.text22,'String',Total);

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
Saturacion_Promedio
close Propiedad_Roca

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
incio
close Propiedad_Roca
CODIGO DE FORMULARIO CALCULO POROSIDAD Y
SATURACION

function varargout = Saturacion_Promedio(varargin)


% SATURACION_PROMEDIO MATLAB code for Saturacion_Promedio.fig
% SATURACION_PROMEDIO, by itself, creates a new SATURACION_PROMEDIO
or raises the existing
% singleton*.
%
% H = SATURACION_PROMEDIO returns the handle to a new
SATURACION_PROMEDIO or the handle to
% the existing singleton*.
%
% SATURACION_PROMEDIO('CALLBACK',hObject,eventData,handles,...)
calls the local
% function named CALLBACK in SATURACION_PROMEDIO.M with the given
input arguments.
%
% SATURACION_PROMEDIO('Property','Value',...) creates a new
SATURACION_PROMEDIO or raises the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before Saturacion_Promedio_OpeningFcn gets
called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to Saturacion_Promedio_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

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

% Last Modified by GUIDE v2.5 24-May-2014 04:38:42

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Saturacion_Promedio_OpeningFcn, ...
'gui_OutputFcn', @Saturacion_Promedio_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 Saturacion_Promedio is made visible.


function Saturacion_Promedio_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 Saturacion_Promedio (see VARARGIN)

% Choose default command line output for Saturacion_Promedio


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

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


% uiwait(handles.figure1);

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


function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
A=str2double(get(handles.edit1,'String'));
B=str2double(get(handles.edit2, 'String'));
C=str2double(get(handles.edit3, 'String'));
D=str2double(get(handles.edit4, 'String'));
E=str2double(get(handles.edit5, 'String'));
F=str2double(get(handles.edit6, 'String'));
G=str2double(get(handles.edit7, 'String'));
H=str2double(get(handles.edit8, 'String'));
I=str2double(get(handles.edit9, 'String'));
J=str2double(get(handles.edit10, 'String'));
K=str2double(get(handles.edit15, 'String'));
L=str2double(get(handles.edit16, 'String'));
M=str2double(get(handles.edit17, 'String'));
N=str2double(get(handles.edit18, 'String'));
O=str2double(get(handles.edit19, 'String'));
P=str2double(get(handles.edit20, 'String'));
Q=str2double(get(handles.edit21, 'String'));
R=str2double(get(handles.edit22, 'String'));
S=str2double(get(handles.edit23, 'String'));
T=str2double(get(handles.edit24, 'String'));
U=str2double(get(handles.edit25, 'String'));
V=str2double(get(handles.edit26, 'String'));
W=str2double(get(handles.edit27, 'String'));
X=str2double(get(handles.edit28, 'String'));
Y=str2double(get(handles.edit29, 'String'));
Z=str2double(get(handles.edit30, 'String'));
AA=str2double(get(handles.edit31, 'String'));
AB=str2double(get(handles.edit32, 'String'));
AC=str2double(get(handles.edit33, 'String'));
AD=str2double(get(handles.edit34, 'String'));
AF=str2double(get(handles.edit35, 'String'));
AG=str2double(get(handles.edit36, 'String'));
AH=str2double(get(handles.edit37, 'String'));
AI=str2double(get(handles.edit38, 'String'));
AJ=str2double(get(handles.edit39, 'String'));
AK=str2double(get(handles.edit40, 'String'));
AL=str2double(get(handles.edit41, 'String'));
AM=str2double(get(handles.edit42, 'String'));
AN=str2double(get(handles.edit43, 'String'));
AO=str2double(get(handles.edit44, 'String'));
AP=str2double(get(handles.edit45, 'String'));
AQ=str2double(get(handles.edit46, 'String'));
AR=str2double(get(handles.edit47, 'String'));
AS=str2double(get(handles.edit48, 'String'));
AT=str2double(get(handles.edit49, 'String'));
AU=str2double(get(handles.edit50, 'String'));
AV=str2double(get(handles.edit51, 'String'));
AW=str2double(get(handles.edit52, 'String'));
AX=str2double(get(handles.edit53, 'String'));
AZ=str2double(get(handles.edit54, 'String'));
QQQ=(A*K*U)+(B*L*V)+(C*M*W)+(D*N*X)+(E*O*Y)+(F*Z*P)+(G*Q*AA)+(H*R*AB)+(I*
S*AC)+(J*T*AD),
QQ=(A*K)+(B*L)+(C*M)+(D*N)+(E*O)+(F*P)+(G*Q)+(H*R)+(I*S)+(J*T);
So=QQQ/QQ;
set(handles.text18,'String',So);
EEE=(A*K*AF)+(B*L*AG)+(C*M*AH)+(D*N*A)+(E*O*AJ)+(F*Z*AK)+(G*Q*AL)+(H*R*AM
)+(I*S*AN)+(J*T*AO),
Sa=EEE/QQ;
set(handles.text19,'String',So);
TTT=(A*K*AP)+(B*L*AQ)+(C*M*AR)+(D*N*AS)+(E*O*AT)+(F*Z*AU)+(G*Q*AV)+(H*R*A
W)+(I*S*AX)+(J*T*AZ),
Sg=TTT/QQ;
set(handles.text20,'String',Sg);

function edit45_Callback(hObject, eventdata, handles)


% hObject handle to edit45 (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 edit45 as text


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

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


function edit45_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit45 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit46_Callback(hObject, eventdata, handles)


% hObject handle to edit46 (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 edit46 as text


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

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


function edit46_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit46 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit47_Callback(hObject, eventdata, handles)


% hObject handle to edit47 (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 edit47 as text


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

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


function edit47_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit47 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit48_Callback(hObject, eventdata, handles)


% hObject handle to edit48 (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 edit48 as text


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

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


function edit48_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit48 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit49_Callback(hObject, eventdata, handles)


% hObject handle to edit49 (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 edit49 as text
% str2double(get(hObject,'String')) returns contents of edit49 as
a double

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


function edit49_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit49 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit50_Callback(hObject, eventdata, handles)


% hObject handle to edit50 (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 edit50 as text


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

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


function edit50_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit50 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit51_Callback(hObject, eventdata, handles)


% hObject handle to edit51 (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 edit51 as text


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

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


function edit51_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit51 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit52_Callback(hObject, eventdata, handles)


% hObject handle to edit52 (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 edit52 as text


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

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


function edit52_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit52 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit53_Callback(hObject, eventdata, handles)


% hObject handle to edit53 (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 edit53 as text


% str2double(get(hObject,'String')) returns contents of edit53 as
a double
% --- Executes during object creation, after setting all properties.
function edit53_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit53 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit54_Callback(hObject, eventdata, handles)


% hObject handle to edit54 (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 edit54 as text


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

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


function edit54_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit54 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit35_Callback(hObject, eventdata, handles)


% hObject handle to edit35 (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 edit35 as text


% str2double(get(hObject,'String')) returns contents of edit35 as
a double
% --- Executes during object creation, after setting all properties.
function edit35_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit35 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit36_Callback(hObject, eventdata, handles)


% hObject handle to edit36 (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 edit36 as text


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

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


function edit36_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit36 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit37_Callback(hObject, eventdata, handles)


% hObject handle to edit37 (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 edit37 as text


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

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


function edit37_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit37 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit38_Callback(hObject, eventdata, handles)


% hObject handle to edit38 (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 edit38 as text


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

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


function edit38_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit38 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit39_Callback(hObject, eventdata, handles)


% hObject handle to edit39 (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 edit39 as text


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

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


function edit39_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit39 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit40_Callback(hObject, eventdata, handles)


% hObject handle to edit40 (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 edit40 as text


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

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


function edit40_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit40 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit41_Callback(hObject, eventdata, handles)


% hObject handle to edit41 (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 edit41 as text


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

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


function edit41_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit41 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit42_Callback(hObject, eventdata, handles)


% hObject handle to edit42 (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 edit42 as text


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

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


function edit42_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit42 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit43_Callback(hObject, eventdata, handles)


% hObject handle to edit43 (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 edit43 as text


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

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


function edit43_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit43 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit44_Callback(hObject, eventdata, handles)


% hObject handle to edit44 (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 edit44 as text


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

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


function edit44_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit44 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit25_Callback(hObject, eventdata, handles)


% hObject handle to edit25 (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 edit25 as text


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

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


function edit25_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit25 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit26_Callback(hObject, eventdata, handles)


% hObject handle to edit26 (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 edit26 as text


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

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


function edit26_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit26 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit27_Callback(hObject, eventdata, handles)


% hObject handle to edit27 (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 edit27 as text


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

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


function edit27_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit27 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit28_Callback(hObject, eventdata, handles)


% hObject handle to edit28 (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 edit28 as text


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

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


function edit28_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit28 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit29_Callback(hObject, eventdata, handles)


% hObject handle to edit29 (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 edit29 as text


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

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


function edit29_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit29 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit30_Callback(hObject, eventdata, handles)
% hObject handle to edit30 (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 edit30 as text


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

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


function edit30_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit30 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit31_Callback(hObject, eventdata, handles)


% hObject handle to edit31 (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 edit31 as text


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

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


function edit31_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit31 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit32_Callback(hObject, eventdata, handles)
% hObject handle to edit32 (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 edit32 as text


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

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


function edit32_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit32 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit33_Callback(hObject, eventdata, handles)


% hObject handle to edit33 (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 edit33 as text


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

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


function edit33_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit33 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit34_Callback(hObject, eventdata, handles)


% hObject handle to edit34 (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 edit34 as text


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

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


function edit34_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit34 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit15_Callback(hObject, eventdata, handles)


% hObject handle to edit15 (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 edit15 as text


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

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


function edit15_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit15 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit16_Callback(hObject, eventdata, handles)


% hObject handle to edit16 (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 edit16 as text


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

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


function edit16_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit16 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit17_Callback(hObject, eventdata, handles)


% hObject handle to edit17 (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 edit17 as text


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

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


function edit17_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit17 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit18_Callback(hObject, eventdata, handles)


% hObject handle to edit18 (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 edit18 as text
% str2double(get(hObject,'String')) returns contents of edit18 as
a double

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


function edit18_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit18 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit19_Callback(hObject, eventdata, handles)


% hObject handle to edit19 (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 edit19 as text


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

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


function edit19_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit19 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit20_Callback(hObject, eventdata, handles)


% hObject handle to edit20 (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 edit20 as text


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

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


function edit20_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit20 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit21_Callback(hObject, eventdata, handles)


% hObject handle to edit21 (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 edit21 as text


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

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


function edit21_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit21 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit22_Callback(hObject, eventdata, handles)


% hObject handle to edit22 (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 edit22 as text


% str2double(get(hObject,'String')) returns contents of edit22 as
a double
% --- Executes during object creation, after setting all properties.
function edit22_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit22 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit23_Callback(hObject, eventdata, handles)


% hObject handle to edit23 (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 edit23 as text


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

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


function edit23_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit23 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit24_Callback(hObject, eventdata, handles)


% hObject handle to edit24 (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 edit24 as text


% str2double(get(hObject,'String')) returns contents of edit24 as
a double
% --- Executes during object creation, after setting all properties.
function edit24_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit24 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

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 empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)


% hObject handle to edit4 (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 edit4 as text


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

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


function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit5_Callback(hObject, eventdata, handles)


% hObject handle to edit5 (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 edit5 as text


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

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


function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit6_Callback(hObject, eventdata, handles)


% hObject handle to edit6 (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 edit6 as text


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

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


function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit7_Callback(hObject, eventdata, handles)


% hObject handle to edit7 (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 edit7 as text


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

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


function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit8_Callback(hObject, eventdata, handles)


% hObject handle to edit8 (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 edit8 as text


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

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


function edit8_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit9_Callback(hObject, eventdata, handles)


% hObject handle to edit9 (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 edit9 as text


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

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


function edit9_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit10_Callback(hObject, eventdata, handles)


% hObject handle to edit10 (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 edit10 as text


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

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


function edit10_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns
called

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


% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton2.


function pushbutton2_Callback(hObject, eventdata, handles)
% 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)
Limpia=' ';
set(handles.edit1,'String',Limpia);
set(handles.edit2,'String',Limpia);
set(handles.edit3,'String',Limpia);
set(handles.edit4,'String',Limpia);
set(handles.edit5,'String',Limpia);
set(handles.edit6,'String',Limpia);
set(handles.edit7,'String',Limpia);
set(handles.edit8,'String',Limpia);
set(handles.edit9,'String',Limpia);
set(handles.edit10,'String',Limpia);
set(handles.edit15,'String',Limpia);
set(handles.edit16,'String',Limpia);
set(handles.edit17,'String',Limpia);
set(handles.edit18,'String',Limpia);
set(handles.edit19,'String',Limpia);
set(handles.edit20,'String',Limpia);
set(handles.edit21,'String',Limpia);
set(handles.edit22,'String',Limpia);
set(handles.edit23,'String',Limpia);
set(handles.edit24,'String',Limpia);
set(handles.edit25,'String',Limpia);
set(handles.edit26,'String',Limpia);
set(handles.edit27,'String',Limpia);
set(handles.edit28,'String',Limpia);
set(handles.edit29,'String',Limpia);
set(handles.edit30,'String',Limpia);
set(handles.edit31,'String',Limpia);
set(handles.edit32,'String',Limpia);
set(handles.edit33,'String',Limpia);
set(handles.edit34,'String',Limpia);
set(handles.edit35,'String',Limpia);
set(handles.edit36,'String',Limpia);
set(handles.edit37,'String',Limpia);
set(handles.edit38,'String',Limpia);
set(handles.edit39,'String',Limpia);
set(handles.edit40,'String',Limpia);
set(handles.edit41,'String',Limpia);
set(handles.edit42,'String',Limpia);
set(handles.edit43,'String',Limpia);
set(handles.edit44,'String',Limpia);
set(handles.edit45,'String',Limpia);
set(handles.edit46,'String',Limpia);
set(handles.edit47,'String',Limpia);
set(handles.edit48,'String',Limpia);
set(handles.edit49,'String',Limpia);
set(handles.edit50,'String',Limpia);
set(handles.edit51,'String',Limpia);
set(handles.edit52,'String',Limpia);
set(handles.edit53,'String',Limpia);
set(handles.edit54,'String',Limpia);

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% 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)
Propiedad_Roca
close Saturacion_Promedio;

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
A=xlsread('Saturacion_Promedio',1,'C3');
set(handles.edit1,'String',A);
B=xlsread('Saturacion_Promedio',1,'C4');
set(handles.edit2,'String',B);
C=xlsread('Saturacion_Promedio',1,'C5');
set(handles.edit3,'String',C);
D=xlsread('Saturacion_Promedio',1,'C6');
set(handles.edit4,'String',D);
E=xlsread('Saturacion_Promedio',1,'C7');
set(handles.edit5,'String',E);
F=xlsread('Saturacion_Promedio',1,'C8');
set(handles.edit6,'String',F);
G=xlsread('Saturacion_Promedio',1,'C9');
set(handles.edit7,'String',G);
H=xlsread('Saturacion_Promedio',1,'C10');
set(handles.edit8,'String',H);
I=xlsread('Saturacion_Promedio',1,'C11');
set(handles.edit9,'String',I);
J=xlsread('Saturacion_Promedio',1,'C12');
set(handles.edit10,'String',J);
K=xlsread('Saturacion_Promedio',1,'D3');
set(handles.edit15,'String',K);
L=xlsread('Saturacion_Promedio',1,'D4');
set(handles.edit16,'String',L);
M=xlsread('Saturacion_Promedio',1,'D5');
set(handles.edit17,'String',M);
N=xlsread('Saturacion_Promedio',1,'D6');
set(handles.edit18,'String',N);
O=xlsread('Saturacion_Promedio',1,'D7');
set(handles.edit19,'String',O);
P=xlsread('Saturacion_Promedio',1,'D8');
set(handles.edit20,'String',P);
Q=xlsread('Saturacion_Promedio',1,'D9');
set(handles.edit21,'String',Q);
R=xlsread('Saturacion_Promedio',1,'D10');
set(handles.edit22,'String',R);
S=xlsread('Saturacion_Promedio',1,'D11');
set(handles.edit23,'String',S);
T=xlsread('Saturacion_Promedio',1,'D12');
set(handles.edit24,'String',T);
U=xlsread('Saturacion_Promedio',1,'E3');
set(handles.edit25,'String',U);
V=xlsread('Saturacion_Promedio',1,'E4');
set(handles.edit26,'String',V);
W=xlsread('Saturacion_Promedio',1,'E5');
set(handles.edit27,'String',W);
X=xlsread('Saturacion_Promedio',1,'E6');
set(handles.edit28,'String',X);
Y=xlsread('Saturacion_Promedio',1,'E7');
set(handles.edit29,'String',Y);
Z=xlsread('Saturacion_Promedio',1,'E8');
set(handles.edit30,'String',Z);
AA=xlsread('Saturacion_Promedio',1,'E9');
set(handles.edit31,'String',AA);
AB=xlsread('Saturacion_Promedio',1,'E10');
set(handles.edit32,'String',AB);
AC=xlsread('Saturacion_Promedio',1,'E11');
set(handles.edit33,'String',AC);
AD=xlsread('Saturacion_Promedio',1,'E11');
set(handles.edit34,'String',AD);
AF=xlsread('Saturacion_Promedio',1,'F3');
set(handles.edit35,'String',AF);
AG=xlsread('Saturacion_Promedio',1,'F4');
set(handles.edit36,'String',AG);
AH=xlsread('Saturacion_Promedio',1,'F5');
set(handles.edit37,'String',AH);
AI=xlsread('Saturacion_Promedio',1,'F6');
set(handles.edit38,'String',AI);
AJ=xlsread('Saturacion_Promedio',1,'F7');
set(handles.edit39,'String',AJ);
AK=xlsread('Saturacion_Promedio',1,'F8');
set(handles.edit40,'String',AK);
AL=xlsread('Saturacion_Promedio',1,'F9');
set(handles.edit41,'String',AL);
AM=xlsread('Saturacion_Promedio',1,'F10');
set(handles.edit42,'String',AM);
AN=xlsread('Saturacion_Promedio',1,'F11');
set(handles.edit43,'String',AN);
AO=xlsread('Saturacion_Promedio',1,'F12');
set(handles.edit44,'String',AO);
AP=xlsread('Saturacion_Promedio',1,'G3');
set(handles.edit45,'String',AP);
AQ=xlsread('Saturacion_Promedio',1,'G4');
set(handles.edit46,'String',AQ);
AR=xlsread('Saturacion_Promedio',1,'G5');
set(handles.edit47,'String',AR);
AS=xlsread('Saturacion_Promedio',1,'G6');
set(handles.edit48,'String',AS);
AT=xlsread('Saturacion_Promedio',1,'G7');
set(handles.edit49,'String',AT);
AU=xlsread('Saturacion_Promedio',1,'G8');
set(handles.edit50,'String',AU);
AV=xlsread('Saturacion_Promedio',1,'G9');
set(handles.edit51,'String',AV);
AW=xlsread('Saturacion_Promedio',1,'G10');
set(handles.edit52,'String',AW);
AX=xlsread('Saturacion_Promedio',1,'G11');
set(handles.edit53,'String',AX);
AZ=xlsread('Saturacion_Promedio',1,'G12');
set(handles.edit54,'String',AZ);

S-ar putea să vă placă și