How to link Radio button and Push button (Matlab GUI)
显示 更早的评论
When handles.radiobutton1 is selected then
user click the Push button the code is executed.
How to implement this? see attach file
采纳的回答
更多回答(2 个)
Ali Noori
2015-6-25
To link between push button and radio button, do like this:
function pushbutton1_Callback(hObject, eventdata, handles)
if get(handles.radiobutton1,'Value') your function % do something end if get(handles.radiobutton2,'Value') your function % do something else end if get(handles.radiobutton3,'Value') your function %do someething else end end
Ali Noori
2015-6-25
0 个投票
To link between push button and radio button, see attached file:
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!