how do i execute file under radio button only when i press start button

1 回表示 (過去 30 日間)
nida
nida 2014 年 4 月 15 日
回答済み: Image Analyst 2014 年 4 月 15 日
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.

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by