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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
| load P;
load R;
handles(22)=uicontrol('style','popupmenu',...
'units','normalized',...
'position',[0.1 0.9 0.2 0.05],...
'string','<40|40-45|45-50|50-55|55-60|60-65|65-70|>70',...
'callback',@resultat,...
'Tag','popup1');
h = guihandles(gcf)
popup_string = get(h.popup1, 'String');
popup_value = get(h.popup1, 'Value');
switch popup_string
case '<40'
i=1;
set(handles(2),'string',R(i,1));
case '40-45'
i=2;
set(handles(5),'string',R(i,1));
case '45-50'
i=3;
set(handles(8),'string',R(i,1));
case '50-55'
i=4;
set(handles(11),'string',R(i,1));
case '55-60'
i=5;
set(handles(14),'string',R(i,1));
case '60-65'
i=6;
set(handles(17),'string',R(i,1));
case '65-70'
i=7;
set(handles(18),'string',R(i,1));
case '70'
i=8;
set(handles(21),'string',R(i,1));
end
handles(1)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.2 0.2 0.05],...
'string','Position6',...
'tag','resultat1');
handles(2)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.2 0.2 0.05],...
'string',0,...
'tag','resultat2');
handles(3)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.2 0.2 0.05],...
'string',0,...
'tag','resultat3');
% ----------------------------------------
handles(4)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.3 0.2 0.05],...
'string','Position5',...
'tag','resultat4');
handles(5)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.3 0.2 0.05],...
'string',0,...
'tag','resultat5');
handles(6)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.3 0.2 0.05],...
'string',0,...
'tag','resultat6');
% ----------------------------------------
handles(7)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.4 0.2 0.05],...
'string','Position4',...
'tag','resultat7');
handles(8)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.4 0.2 0.05],...
'string',0,...
'tag','resultat8');
handles(9)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.4 0.2 0.05],...
'string',0,...
'tag','resultat9');
% ----------------------------------------
handles(10)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.5 0.2 0.05],...
'string','Position3',...
'tag','resultat10');
handles(11)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.5 0.2 0.05],...
'string',0,...
'tag','resultat11');
handles(12)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.5 0.2 0.05],...
'string',0,...
'tag','resultat12');
% ----------------------------------------
handles(13)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.6 0.2 0.05],...
'string','Position2',...
'tag','resultat13');
handles(14)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.6 0.2 0.05],...
'string',0,...
'tag','resultat14');
handles(15)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.6 0.2 0.05],...
'string',0,...
'tag','resultat15');
% ----------------------------------------
handles(16)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.7 0.2 0.05],...
'string','Position1',...
'tag','resultat16');
handles(17)=uicontrol('style','text',...
'units'
,'normalized',...
'position',[0.4 0.7 0.2 0.05],...
'string',0,...
'tag','resultat17');
handles(18)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.7 0.2 0.05],...
'string',0,...
'tag','resultat18');
% ----------------------------------------
handles(19)=uicontrol('style','text',...
'units','normalized',...
'position',[0.1 0.8 0.2 0.05],...
'string','Position0',...
'tag','resultat19');
handles(20)=uicontrol('style','text',...
'units','normalized',...
'position',[0.4 0.8 0.2 0.05],...
'string',0,...
'tag','resultat20');
handles(21)=uicontrol('style','text',...
'units','normalized',...
'position',[0.7 0.8 0.2 0.05],...
'string',0,...
'tag','resultat21'); |
Partager