Académique Documents
Professionnel Documents
Culture Documents
MENORES
function varargout = DISMINUCION_ACESORIOS_MENORES2(varargin)
% Last Modified by GUIDE v2.5 15-Sep-2014 12:10:31
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',
mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn',
@DISMINUCION_ACESORIOS_MENORES2_OpeningFcn, ...
'gui_OutputFcn',
@DISMINUCION_ACESORIOS_MENORES2_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
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton1,'CData',g);
[a,map]=imread('dos.jpg');
[r,c,d]=size(a);
x=ceil(r/90);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton2,'CData',g);
[a,map]=imread('tres.jpg');
[r,c,d]=size(a);
x=ceil(r/90);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton3,'CData',g);
[a,map]=imread('cuatro.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton4,'CData',g);
[a,map]=imread('cinco.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton5,'CData',g);
[a,map]=imread('seis.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/100);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton6,'CData',g);
[a,map]=imread('siete.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton7,'CData',g);
[a,map]=imread('ocho.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton8,'CData',g);
[a,map]=imread('nueve.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton9,'CData',g);
[a,map]=imread('diez.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton10,'CData',g);
[a,map]=imread('once.png');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton11,'CData',g);
[a,map]=imread('once.png');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton12,'CData',g);
[a,map]=imread('trece.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton13,'CData',g);
[a,map]=imread('catorce.jpg');
[r,c,d]=size(a);
x=ceil(r/100);
y=ceil(c/85);
g=a(1:x:end,1:y:end,:);
g(g==255)=5.5*255;
set(handles.pushbutton14,'CData',g);
%matriz de datos
M1=[0.12 5.18 2.44 1.22 0.46 0.3 1;
% --- Outputs from this function are returned to the command line.
L=M(y,5)
set(handles.resultado,'String',L)
% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata,
global M y
L=M(y,6)
set(handles.resultado,'String',L)
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata,
global M y
L=M(y,7)
set(handles.resultado,'String',L)
% --- Executes on button press in pushbutton8.
function pushbutton8_Callback(hObject, eventdata,
global M y
L=M(y,8)
set(handles.resultado,'String',L)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata,
global M y
L=M(y,2)
set(handles.resultado,'String',L)
handles)
handles)
handles)
handles)
d==2
d==3
d==4
d==5
d==6
d==7
d==8
else
y=9
else
y=10
else
y=11
else
y=12
else
y=13
else
y=14
else
y=15
else
y=16
else
y=1
if d==9
if d==10
if d==11
if d==12
if d==13
if d==14
if d==15
if d==16
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
% --- Executes during object creation, after setting all properties.
function selec_CreateFcn(hObject, eventdata, handles)
% hObject
handle to selec (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
empty - handles not created until after all CreateFcns
called
% Hint: popupmenu 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