Variable Length inputdlg() Box

1 回表示 (過去 30 日間)
Brad
Brad 2012 年 6 月 23 日
The inputdlg allows me to type in multiple prompts thus generating multiple input boxes. However, I'd like to have a have a user specifiy the number of inputs (say 5) and then have the inputdlg box pop up with 5 input boxes each with a prompt that says "Input 1", "Input 2",...etc. Any idea how to go about this?

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 23 日
answers = inputdlg( cellstr( num2str((1:N).', 'Input %d') ) );
  1 件のコメント
Brad
Brad 2012 年 6 月 23 日
Perfect, thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by