1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| function gui_essai
global handles
%offset n
n={'a' 'v' 'b' 'c' 'd'};
offset(:,1)=[1 4 5];
m=size(offset);
m=m(1);
% Création de l'objet Figure
handles(1)=figure('units','pixels',...
'position',[250 250 500 500],...
'numbertitle','off',...
'name','[GUI] Choix des variables à éliminer',...
'menubar','none',...
'tag','interface');
% Création des objets variables
for i=1:m
it=offset(i,1);
handles(i)=uicontrol('style','checkbox',...
'units','characters',...
'position',[0.1 0.2 0.3 0.05],...
'string',n{it},...
'tag',n{it});
end |
Partager