i want to choose between 2 panels of inputs depending on radiobuttons in another panel but initially there shouldnt be any panel of inputs what i can do
2 次查看(过去 30 天)
显示 更早的评论
attached is fig file related to question
0 个评论
回答(1 个)
Soyeun Jung
2017-8-7
Hi Amey,
You can write a callback function for the radio button panel that gets called as soon as the user provides an input. Initially, both of the user input panels' Visible property can be initialized to 'false'. The callback function can then set the Visible property to 'on' for one of the User Panel figure, depending on the value of the user input from the radio button panel. See the doc for uicontrol for examples.
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!