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개)

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