if i give maximum value to the check box means some function will be done , otherwise nothing will be do, how to do?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
i am using MATLAB 8.1 version.i do know about gui.but now i learn that.i am working on image processing concepts.i have 3 function and i have 3 checkbox. if i choose first checkbox first function only running.if i choose second one second function only running.if i choose both 1&2 both are running.this is my concept.how will i call the funtion using checkbox?
please give some idea....
Antworten (1)
ES
am 3 Sep. 2013
say you have function1(), and function2().
Checkbox1CallBack()
global Firstcallbox_Value;
Firstcallbox_Value=get(hobject,'Value');
commonCallBack();
Checkbox2CallBack()
global Secondcallbox_Value;
Secondcallbox_Value=get(hobject,'Value');
commonCallBack();
commonCallBack()
if Firstcallbox_Value==1 && Secondcallbox_Value==1
function1()
function2().
elseif Firstcallbox_Value==1
function1()
elseif Secondcallbox_Value==1
function2()
end
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!