フィルターのクリア

How to make panel viable based on my radio button value

3 ビュー (過去 30 日間)
Abdullah Azzam
Abdullah Azzam 2018 年 9 月 1 日
回答済み: Cris LaPierre 2018 年 12 月 22 日
Hello guys, I am new to the GUI in matlab and I have got this issue. I have two panles and each assigned to one radio button, I want when radio button 1 is activated panel one will be visible and 2 invisible and vise-versa.
Thanks in advance

回答 (1 件)

Cris LaPierre
Cris LaPierre 2018 年 12 月 22 日
Inside your radiobutton callbacks, set the visible property of the panels to 'on' or 'off' to make it visible/invisible:
% inside callback for radiobutton1
set(handles.uipanel2,'Visible','off');
set(handles.uipanel1,'Visible','on');
Do the opposite in radiobutton2's callback.

カテゴリ

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