Opening other GUI with radio button
이전 댓글 표시
I have a Button Group and I want to show another GUI when I clicked on one of the radio buttons but I don't know how to call the file. What command or syntax do I need to use? Can anybody help me, Thanks.
댓글 수: 1
Jan
2012년 3월 13일
RadioButtons are designed to select mutual exclusive conditions. Opening another GUI by a RadioButton might be unintuitive. I'd suggest a PushButton.
답변 (1개)
TAB
2012년 3월 13일
In you radio callback function you can directly call other GUI. For example
function radiobutton1_Callback(hObject, eventdata, handles)
if get(hObject,'Value')==1
gui1;
else
close gui1;
end
This code will open gui1 when radiobutton1 is selected and closes gui1 when same is deselected.
카테고리
도움말 센터 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!