How to create multiple answers accepted questions in Matlab script?

18 ビュー (過去 30 日間)
My Nguyen
My Nguyen 2022 年 6 月 17 日
コメント済み: My Nguyen 2022 年 6 月 17 日
I want to create a question in the script asking the user to choose multiple answers but with questdlg I can only accept 1 answer. Is there anyway I can do this without using GUI/AppDesigner becaus eI'm very new and get confused on linking the 2 things so I would perfer to have them all on script? Thank you!
  2 件のコメント
My Nguyen
My Nguyen 2022 年 6 月 17 日
oh nvm I figured it out. Thank you!
My Nguyen
My Nguyen 2022 年 6 月 17 日
Just another question, if I want to link the designer app coding box to script, how should I do it? My intend is to make the box work as a "function" in the Matlab script not the other way around. This is because the selection options/names from the box will come from the script code user input.

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

採用された回答

Simon Chan
Simon Chan 2022 年 6 月 17 日
Use function listdlg with multiple SelectionMode.
  4 件のコメント
My Nguyen
My Nguyen 2022 年 6 月 17 日
Thank you!
My Nguyen
My Nguyen 2022 年 6 月 17 日
Just another question, if I want to link the designer app coding box to script, how should I do it? My intend is to make the box work as a "function" in the Matlab script not the other way around. This is because the selection options/names from the box will come from the script code user input.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by