Opening other GUI with radio button

2 次查看(过去 30 天)
Ernesto
Ernesto 2012-3-13
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
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
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by