j'arrive toujours pas à commander mon checkbox, aidez moi svp
j'ai crée dans une interface graphique pushbotton et 3 checkbox avec les noms: cycle1,2,3
je veut de tel sorte qd je coche par exemple le cycle1 et 3 'j'aurais :
cycle1=cycle1 et cycle2=cycle3
dans mon cas, aprés avoir fait ce code au niveau des checkbox et pushbotton,
il m'affiche qd je coche sur cycle1,3 :
cycle1=1,cycle2=0,cycle3=1
voici le code:
checkbox:
Code:
1 2 3 4 5 6
| function checkbox1_Callback(hObject, eventdata, handles)
if (get(hObject,'string') == get(hObject,'value'))
Checkbox is checked-take approriate action
%else
%Checkbox is not checked-take approriate action |
pushbotton;
Code:
1 2 3 4 5
| function pushbutton2_Callback(hObject, eventdata, handles)
cycle1=get(handles.checkbox1,'string')
cycle2=get(handles.checkbox2,'string')
cycle3=get(handles.checkbox3,'string') |
je vous demande de bien vouloir m'aidez svp.