how do i execute file under radio button only when i press start button
1 次查看(过去 30 天)
显示 更早的评论
i have 3 radio buttons with 3 different files i want to select one of them without executing that file, then when i press start button iwant that file to execute.
0 个评论
采纳的回答
Image Analyst
2014-4-15
In the callback for the "Start" push button:
if get(handles.radioButton1, 'Value')
% Run function #1
function1;
elseif get(handles.radioButton2, 'Value')
% Run function #2
function2;
else
% Run function #3
function3;
end
You don't need anything in the callback of the radiobuttons or their group.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 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!