Está en la página 1de 13

function varargout = ProyectoMatlab(varargin)

% ProyectoMatlab MATLAB code for ProyectoMatlab.fig

%Version de matlab: MATLAB R2014a


% PRESENTADO POR:
%

KAREN JULIETH URREGO ROA


ANDRES DAVID LOPEZ CONTRERAS

% DIMENSIONAMIENTO DE UN MOLINO DE BOLAS.


%
%
%
%
%
%
%
%
%
%
%
%
%
%

ESTE PROYECTO DE CURSO DE MATLAB , SE BASA EN NUESTRA CARRERA INGENIERIA


METALURGICA , DE UNA MATERIA QUE CURSAMOS QUE SE LLAMA BENEFICIO DE
MINERALES , EN LA CUAL APARTIR DE UN ANALISI GRANULOMETRICO DEL ALIMENTO
QUE SERA PASADO POR UNA SERIE DE TAMICES , SE OBTENER EL PRODUCTO
PASANTE A UNA MALLA DE 80 MICRAS , YA CONOCIDO ESTE VALOR, SE PROCEDE A
CALCULAR EL DIMENSIONAMIENTO DE UN MOLINO DE BOLAS , PARA CONOCER SU
DIAMETRO REAL Y LONGITUD REAL , A LA CUAL REALMENTE DEBERIA TRABAJAR PARA
SU ADECUADO FUNCIONAMIENTO Y ASI POSTERIORMENTE SE HALLARA LA POTENCIA
ELECTRICA QUE CONSUMIRA EL MOLINO DE BOLAS , DE ACUERDO A LA CARGA QUE SE
LE ADICIONE AL MOLINO , PARA QUE EL MINERAL SEA REDUCIDO DE TAMAO , COMO
SE LOGRA SU DIMENSIONAMIENTO , CON LA AYUDA DE CIERTAS CARACTERICAS QUE
POSEE EL MOLINO DE BOLAS , COMO QUE SI SU CARGA ES HUMEDA O SECA , Y
ENTRE OTRAS, PARA ASI CALCULAR UN WORK INDEX CORREGIDO , Y CONOCER SUS
DIMENSIONES REALES .

%
ProyectoMatlab, by itself, creates a new ProyectoMatlab or raises the existi
%
singleton*.
%
%
H = ProyectoMatlab returns the handle to a new ProyectoMatlab or the handle
%
the existing singleton*.
%
%
ProyectoMatlab('CALLBACK',hObject,eventData,handles,...) calls the local
%
function named CALLBACK in ProyectoMatlab.M with the given input arguments.
%
%
ProyectoMatlab('Property','Value',...) creates a new ProyectoMatlab or raise
%
existing singleton*. Starting from the left, property value pairs are
%
applied to the GUI before ProyectoMatlab_OpeningFcn gets called. An
%
unrecognized property name or invalid value makes property application
%
stop. All inputs are passed to ProyectoMatlab_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 ProyectoMatlab
% Last Modified by GUIDE v2.5 13-Feb-2015 01:45:40

% Begin initialization code - DO NOT EDIT


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


function ProyectoMatlab_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 ProyectoMatlab (see VARARGIN)
% Choose default command line output for ProyectoMatlab
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);

DATOS={'4m', 4760;'10m', 2000;'20m', 841;'35m', 500;'50m', 297;'100m', 150;'140m',


set(handles.tablat,'data',DATOS);

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


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.
function varargout = ProyectoMatlab_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 when selected cell(s) is changed in uitable1.


function tablat_CellSelectionCallback(hObject, eventdata, handles)
% TABLA DEL NUMERO DE MALLA A LA CUAL PASO EL ALIMENTO PARA REALIZAR EL
%DIMENSIONAMIENTO DEL MOLINO DE BOLAS
DATOS={'4m', 4760;'10m', 2000;'20m', 841;'35m', 500;'50m', 297;'100m', 150;'140m',
set(handles.tablat,'data',DATOS);
% -------------------------------------------------------------------function uitable12_ButtonDownFcn(hObject, eventdata, handles)
% --- Executes when entered data in editable cell(s) in uitable12.
function uitable12_CellEditCallback(hObject, eventdata, handles)
% --- Executes when selected cell(s) is changed in uitable12.
function uitable12_CellSelectionCallback(hObject, eventdata, handles)
% --- Executes on button press in calcular1.
function calcular1_Callback(hObject, eventdata, handles)
% LOS VALORES REGISTRADOS DEL PASANTE DE LAS MALLAS DEL ALIMENTO
% AL REALIZAR EL ANALISIS GRANULOMETRICO
msgbox('Digite cero en la ultima fila de la primera columna, de la tabla 1')
F=cell2mat(get(handles.uitable12,'data'));
% ABERTURAS DE LAS MALLAS EN MICRAS
ABER=[4760,2000,841,500,297,150,105,74,-74];
i=0;
for i=1:9
peso(i)=F(i,1);
end
pesot=0;
% LA SUMATORIA DE LOS PESOS DE TODAS LAS MALLAS
for i=1:9
pesot=peso(i)+pesot;
RES(i,1)=peso(i);
end
RES(10,1)=pesot;
ACUM=0;
% CADA PESO DE CADA MALLA DIVIDO POR EL PESO TOTAL DE TODAS LAS MALLAS
% PORCENTAJE EN PESO DE CADA MALLA
for i=1:9
RES(i,2)=peso(i)/pesot*100;
PP(i)=RES(i,2);
% LUEGO DE TENER EL PORCENTAJE EN PESO DE CADA MALLA, SE REALIZARA EL
% PORCENTAJE ACUMULADO RETENIDO EN CADA MALLA
ACUM=RES(i,2)+ACUM;
end
RES(10,2)=ACUM;
RES(1,3)=RES(1,2);
for i=2:9
RES(i,3)=RES(i-1,3)+RES(i,2);
end

% LUEGO DE TENER EL PESO RETENIDO EN CADA MALLA SE LE RESTARA EL PESO


% TOTAL DE TODAS LAS MALLAS, PARA ASI OBTENER EL PESO PASANTE DE CADA MALLA
for i=1:9
RES(i,4)=ACUM-RES(i,3);
end
% CUANDO YA SE TIENE EL PESO PASANTE DE CADA MALLA , SE REALIZARA UNA
% LINEALIZACION ENTRE EL PESO PASANTE VS LA ABERTURA EN MICRAS PARA CONOCER
% LA FUNCION DE GGS Y REALMENTE CONOCER EL PESO PASANTE QUE DEBERIA HABER
% PASADO. :)COMO LO HAGO , APLICANDO LOGORITMO EN BASE 10 A CADA UNO DE
% ELLOS
for i=1:8
PAS(i)=log10(RES(i,4));
AB(i)=log10(ABER(i));
end
% YA LINEALIZADO , SACO LA PENDIENTE Y EL PUNTO DE CORTE PARA CONOCER Y
% ARMAR LA FUNCION DE GGS QUE SERIA F(x) = 100*(X/Xo).^ALPHA. DONDE ALPHA
% ES IGUAL AL VALOR DE ALPHA HALLADO Y Xo ES IGUAL AL PC
p = polyfit (AB,PAS, 1);
alpha=p(1);
PC=(100/(10^p(2)))^(1/alpha);
% COMO SE NECESITARA EL F80 PARA CALCULAR EL DIMENSIONAMIENTO DEL MOLINO ,
% SE PROCEDEE A CALCULARLO CONOCIENDO LA FUNCION GGS.
f80=((80.^(1/alpha))/100).*(PC)
set(handles.F80hallado,'string',f80)
% HALLANDO CADA VALOR PASANTE CON LA FUNCION GGS VERDADERO , QUE DEBIO
% HABER PASADO EN CADA MALLA
for i=1:8
GGS(i)=100*(ABER(i)/PC)^alpha;
RES(i,5)=GGS(i);
LGGS(i)=alpha*AB(i)+p(2);
end
for i=1:8
MUL(i)=log10(log(100/RES(i,3)));
end
h = polyfit (AB,MUL, 1);
w=h(1);
PCD=10^(h(2)/w);
for i=1:8
RES(i,6)=100-GGS(i);
end
% LAS GRAFICAS, RELACIONADAS AL PORCENTAJE EN PESO VS LA ABERTURA Y LA OTRA
% SERIA PORCENTAJE PASANTE VS LA ABERTURA.
axes(handles.grafico1)
grid on
plot(ABER,PP,'r-','linewidth',2)
title('% PESO vs ABERTURA'); % se le coloca titulo a la grafica
xlabel('ABERTURA'); %nombre del eje x
ylabel('% PESO');%nombre del eje y

axes(handles.grafico2)
grid on
plot(AB,LGGS,'g-','linewidth',2)
title('GGS'); % se le coloca titulo a la grafica
xlabel('ABERTURA'); %nombre del eje x
ylabel('% ACUMULADO PASANTE');%nombre del eje y

DED=RES;
set(handles.uitable12,'data',DED);
function edit1_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)

%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
function edit3_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end
function edit4_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end
function edit5_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% DATOS QUE DEBEN SER REGISTRADOS A LA HORA DE REALIZAR EL
% DIMENSIONAMIENTO DEL MOLINO .
V=str2double(get(handles.edit1,'string'))% VOLTAJE DEL MOLINO

I=str2double(get(handles.edit3,'string'))% INTENSIDAD DEL MOLINO


n=str2double(get(handles.edit4,'string'))% EFICIENCIA DEL MOLINO
Ca=str2double(get(handles.edit5,'string'))% CARGA CIRCULANTE DEL MOLINO
P80=str2double(get(handles.edit6,'string'))% PRODUCTO PASANTE DE LA MALLA 80
F80=str2double(get(handles.F80hallado,'string'))% ALIMENTO HALLADO ANTERIORMENTE.
% POTENCIA CALCULADA APARTIR DE LOS DATOS DADOS POR EL USUARIO
P=(sqrt(3)*V*I*cos(n/100))/1000
P=abs(P)
% TRABAJO REALIZADO POR EL EQUIPO , ES DECIR EL MOLINO DE BOLAS
W=(P/Ca)
% WORK INDEX , ES UN VALOR DE RESISTENCIA QUE DA CADA PARTICULA DENTRO DEL
% MOLINO
Wi=W/((10/sqrt(P80))-(10/(sqrt(F80))))
Wi=abs(Wi)
set(handles.text3,'string',Wi)

function edit6_Callback(hObject, eventdata, handles)


% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)

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

function edit7_Callback(hObject, eventdata, handles)

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


function edit7_CreateFcn(hObject, eventdata, handles)

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

% --- Executes on selection change in popupmenu1.


function popupmenu1_Callback(hObject, eventdata, handles)
% VALORES DE ACUERDO A CADA SITUACION A LA QUE SE ENCUNTRE EL MINERAL A
% MOLER DENTRO DEL MOLINO DE BOLAS.
kb=get(hObject,'value')
switch kb
case 2
moli=0.00005456

set(handles.molienda,'string',moli)
case 3
moli=0.00004912
set(handles.molienda,'string',moli)
case 4
moli=0.00004365
set(handles.molienda,'string',moli)
end

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


function popupmenu1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end
function velocidadcritica_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function velocidadcritica_CreateFcn(hObject, eventdata, handles)

%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
function cargadebolas_Callback(hObject, eventdata, handles)

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


function cargadebolas_CreateFcn(hObject, eventdata, handles)

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

% --- Executes on selection change in popupmenu2.


function popupmenu2_Callback(hObject, eventdata, handles)
% CONSTANTES , QUE VAN A DEACUERDO , A LO QUE EL USUARIO DIGITARA PARA
% CADA TIPO DE MOLIENDA.
primer=get(hObject,'value')
switch primer
case 2
f1=1.3
set(handles.F1,'string',f1)
case 3
f1=1
set(handles.F1,'string',f1)
end

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


function popupmenu2_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

% --- Executes on selection change in popupmenu3.


function popupmenu3_Callback(hObject, eventdata, handles)
%MAS CONSTANTE QUE SON DIGITADAS POR EL USUARIO PARA REALIZAR EL CALCULO
%DEL DIMENSIONAMIENTO DEL MOLINO DE BOLAS
segun=get(hObject,'value');
switch segun
case 3
f2=1
set(handles.F2,'string',f2)
case 2
refe=str2double(get(handles.Refe,'string'))
if refe==50
f2=1.035
set(handles.F2,'string',f2)
elseif refe==60
f2=1.050
set(handles.F2,'string',f2)
elseif refe==70
f2=1.1
set(handles.F2,'string',f2)
elseif refe==80
f2=1.2
set(handles.F2,'string',f2)
elseif refe==90
f2=1.4
set(handles.F2,'string',f2)
else
msgbox('digite un numero valido')
end
end
% --- Executes during object creation, after setting all properties.
function popupmenu3_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function Refe_Callback(hObject, eventdata, handles)

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


function Refe_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function Diametro_Callback(hObject, eventdata, handles)

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


function Diametro_CreateFcn(hObject, eventdata, handles)

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

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% APARTIR DE LAS CONSTANTES, DIGITADAS POR EL USUARIO SE PROCEDERA A
% REALIZAR LOS RESPECTIVOS CALCULOS PARA HALLAR EL DIMENSIONAMIENTO A LA
% CUAL DEBERIA ESTAR EL MOLINO DE BOLAS
% RESPECTIVAMENTE CA: CARGA DE BOLAS , VC: VELOCIDAD CRITICA , DI: DIAMETRO
% F3: CONTASTE APARTIR DEL DIAMETRO A LA CUAL SUPONE SU DIMENSIONAMIENTO
ca=str2double(get(handles.cargadebolas,'string'))
vc=str2double(get(handles.velocidadcritica,'string'))
di=str2double(get(handles.Diametro,'string'))
f3=(8/di)^0.2
set(handles.F3,'string',f3)
p80=str2double(get(handles.edit6,'string'))% PRODUCTO DE LA MALLA 80 PASANTE
f80=str2double(get(handles.F80hallado,'string'))
% FACTOR DE REDUCCION DE TAMAO
Rr=f80/p80
% WORK INDEX HALLADO, PARA CONOCER RESPECTIVAMENTE EL WORK INDEX CORREGIDO
% Y ASI DETERMINAR SU DIMENSIONAMIENTO
wi=str2double(get(handles.text3,'string'))
% CONSTANTE QUE DEBERA HALLARSE CONOCIENDO AL WORK INDEX
fo=4000*sqrt(13/wi)
set(handles.F0,'string',fo)
% CONSTANTES PARA DETERMINAR EL DIMENSIONAMIENTO , APARTIR DEL FACTOR DE
% REDUCCION Y DEL F80 Y CONSTANTE Fo
f4=(Rr+(wi-7)*((f80-fo)/fo))/Rr
set(handles.F4,'string',f4)
% REALMENTE EL PROGRAMA SE BASA EN HALLAR COMO 6 CONSTANTES DIFERENTES PARA
% EL DIMENSIONAMIENTO DEL MOLINO , BASADO EN CARACTERISTICAS DEL TIPO DE
% MOLIENDA Y DE DATOS QUE EL USUARIO REGISTRARA
if p80<= 75

f5=(p80+10.3)/(1.145*p80)
set(handles.F5,'string',f5)
else
f5=1;
set(handles.F5,'string',f5)
end
if Rr<=6
f6=(20*(Rr-1.35)+2.6)/(20*(Rr-1.35))
set(handles.F6,'string',f6)
else
f6=1
set(handles.F6,'string',f6)
end
f1=str2double(get(handles.F1,'string'))
f2=str2double(get(handles.F2,'string'))
moli=str2double(get(handles.molienda,'string'))
% ESTE ES EL WORK INDEX CORREGIDO , HALLADO APARTIR DE LAS DIFERENTES
% CONSTANTE , QUE SE IRAN REGISTRADO Y HALLANDO MEDIANTE EL PROGRAMA
wic=wi*f1*f2*f3*f4*f5*f6
set(handles.WIC1,'string',wic)
% TRABAJO CORREGIDO , CONOCIENDO EL WORK INDEX CORREGIDO .
wc=wic*((10/sqrt(p80))-(10/sqrt(f80)))
set(handles.WC1,'string',wc)
% CAPACIDAD QUE TIENE EL MOLINO DE BOLAS , ES DECIR LA CANTIDAD DE MINERAL
% QUE SE LE INGRESO AL MOLINO
car=str2double(get(handles.edit5,'string'))
% POTENCIA MECANICA, DEL MOLINO DE BOLAS
pm=1.341*wc*car
set(handles.PM1,'string',pm)
n=str2double(get(handles.edit4,'string'))
% POTENCIA ELECTRICA DEL MOLINO DE BOLAS , APARTIR DE LA POTENCIA MECANICA
% Y DE SU EFICIENCIA
pe=((pm/n)*100)
set(handles.PeM1,'string',pe)
% LONGITUD QUE DEBERIA TENER EL MOLINO DE BOOLAS , DEACUERDO AL DIAMETRO
% SUPUESTO POR EL USUARIO
l=1.25*di
% CONOCIENDO LOS DIFERENTES VALORES TANTO LA POTEN. ELECTRICA , CONTANTES
% DEL MOLINO CAPACIDAD, VELOCIDAD CRITICA , DIAMETRO SUPUESTO Y LA LONGITUD
% DE ACUERDO AL DIAMETRO SUPUESTO , SE HALLARA EL DIAMETRO REAL DEL MOLINO
% DE BOLAS DEBERIA TENER
Dreal=((pe/(moli*((ca)^0.461)*((vc)^1.505)*(l/di)))^(1/3.5))
Dreal=fix(Dreal)
set(handles.DiametroR1,'string',Dreal)
% CONOCIENDO EL DIAMETRO REAL DEL MOLINO DE BOLAS , SE HALLARA LA LONGITUD
% REAL
L=Dreal*1.25
L=fix(L)

10

set(handles.longitud1,'string',L)
% APARTIR DEL DIAMETRO REAL Y LONGITUD REAL DEL MOLINO DE BOLAS , SE
% PROCEDE A CALCULAR LA POTENCIA ELECTRICA QUE REALEMENTE CONSUMIRA
PE=(Dreal^3.5)*(moli*((ca)^0.461)*((vc)^1.505)*(l./di))
PE=fix(PE)
set(handles.PE1,'string',PE)

function WIC1_Callback(hObject, eventdata, handles)

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


function WIC1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function WC1_Callback(hObject, eventdata, handles)

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


function WC1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function PM1_Callback(hObject, eventdata, handles)

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


function PM1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function PeM1_Callback(hObject, eventdata, handles)

11

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


function PeM1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function PE1_Callback(hObject, eventdata, handles)

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


function PE1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function longitud1_Callback(hObject, eventdata, handles)

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


function longitud1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun


set(hObject,'BackgroundColor','white');
end

function DiametroR1_Callback(hObject, eventdata, handles)

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


function DiametroR1_CreateFcn(hObject, eventdata, handles)

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

% --- Executes on button press in secuencia.


function secuencia_Callback(hObject, eventdata, handles)
msgbox('Complete pesos correspondientes en la Tabla1 oprima CALCULAR, Llene Panel1
% hObject
handle to secuencia (see GCBO)

12

% eventdata
% handles

reserved - to be defined in a future version of MATLAB


structure with handles and user data (see GUIDATA)

Published with MATLAB R2014a

13

También podría gustarte