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

Answers (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

This question is closed.

Tags

Asked:

on 3 Sep 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!