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....
댓글 수: 0
답변 (1개)
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
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!