How to reset toggle buttons with a push button?
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Dishant Arora
2013-7-13
push buttton callback:
set(handles.togglebutton1,'value',0);
set(handles.togglebutton2,'value',0);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!