Is there a way for a GUI to be created based on input on another GUI?

3 ビュー (過去 30 日間)
MechE1
MechE1 2018 年 7 月 24 日
回答済み: OCDER 2018 年 7 月 24 日
I have a GUI with a popup menu, you have options 1-12. The gist is if you select '4' for example, my new GUI should have '4' text boxes to input data, if you select '10', my new GUI should have '10' text boxes to input data. I understand I can create a 12 different GUIs for every option but this would be rather tedious to do. Is there a way for me to have only one 1 GUI that is changing based on the input?
  2 件のコメント
OCDER
OCDER 2018 年 7 月 24 日
You'll have to hard code a variable GUI then. https://www.mathworks.com/help/matlab/ref/uicontrol.html
MechE1
MechE1 2018 年 7 月 24 日
Just what I was looking for, thank you!

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

採用された回答

OCDER
OCDER 2018 年 7 月 24 日
You'll have to hard code a variable GUI then. https://www.mathworks.com/help/matlab/ref/uicontrol.html
(moved from the comments. Didn't realize this was going to be the answer you were looking for!)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by