if i give maximum value to the check box means some function will be done , otherwise nothing will be do, how to do?

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....

回答 (1 件)

ES
ES 2013 年 9 月 3 日
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

この質問は閉じられています。

タグ

質問済み:

2013 年 9 月 3 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by