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 30 31 32 33 34 35 36 37 38 39 40 41 42
|
clear
close
clc
//
guiw1=1000;
guih1=700;
list_variables=["variable1","variable2","variable3","variable4","variable5",...
"variable6","variable7","variable8","variable9","variable10"];
// figure
f=figure(1,...
"position",[0,0,guiw1,guih1+20],...
"figure_name","Liste_des_variables");
//pushbutton
boutton=uicontrol(f,...
"style","pushbutton",...
"string","Graph",...
"position",[600,680,200,20],...
"horizontalalignment","center",...
"Callback","traceit()");
// liste handles
s= msprintf("vari%d=gca()\n",(1:10)')
execstr(s)
clear s
// chekboxes
for i=1:10
vari=uicontrol(f,...
"style","checkbox",...
"string",list_variables(i),...
"position",[10,guih1-i*20,200,20],...
"horizontalalignment","left");
end
clear i
//graph
function traceit()
endfunction |
Partager