Changing the right panel gui in every choices in the left panel

1 回表示 (過去 30 日間)
Jan Kyle Dismas
Jan Kyle Dismas 2021 年 4 月 5 日
コメント済み: Jan Kyle Dismas 2021 年 4 月 5 日
Hi! So i am very new to MATLAB especially in GUIs, so what i have here is the design for my program,
So, i wanted to change the gui on the right panel every time i choose something from the left panel upon clicking 'Start Program', however it is my first time doing the gui which makes it difficult. I tried search for links, but couldn't find anything related to this. can someone help me?

採用された回答

Image Analyst
Image Analyst 2021 年 4 月 5 日
In the callback function for the button, you need to put code to read the selected index in the listbox and do something with that knowledge. Something like
selectedIndex = app.listbox1.Value;
switch selectedIndex
case 1
% Display solid block
case 2
% Display hollow block
case 3
% Display circle
end
  1 件のコメント
Jan Kyle Dismas
Jan Kyle Dismas 2021 年 4 月 5 日
oh thanks, i forgot about the switch program thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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