Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Proyecto Matlab
Proyecto Matlab
%
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
% --- 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;
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)
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
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
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
function cargadebolas_Callback(hObject, eventdata, handles)
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
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)
11
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroun
set(hObject,'BackgroundColor','white');
end
12
% eventdata
% handles
13