How to reset toggle buttons with a push button?

I have one push button (pushbutton1) and two toggle buttons in GUIDE (togglebutton1, togglebutton2).
Is there any way to connect the push button and the toggle buttons so that every time the push button is pushed, the two toggle buttons are reset to un-toggled state?
(if a toggle button is not toggled to begin with, then the push button does not do anything to that toggle button)
Thank you very much

 채택된 답변

Dishant Arora
Dishant Arora 2013년 7월 13일

0 개 추천

push buttton callback:
set(handles.togglebutton1,'value',0);
set(handles.togglebutton2,'value',0);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

질문:

Han
2013년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by