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에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!