Creating input options based on a number
古いコメントを表示

Just say I put in 7 for the amount, how would the input option print out seven b and seven c.
I can't figure out a efficient way to do it
5 件のコメント
Oleg Komarov
2012 年 3 月 23 日
I do not understand, be more specific. 7b or sevenb or smt else?
Is that a custom made GUI or are you using some inbuilt ones (looks like inputdlg)?
Rooy
2012 年 3 月 23 日
Stephen
2012 年 3 月 23 日
If you programmed a lot more GUI fields and had them set to visibility = 'off' and enabled = 'off' as a default, then you could create a callback that triggers when you input the amount 7, and toggles 7 of those input fields to visible and enabled. I think that is what you are trying to do at least.
Oleg Komarov
2012 年 3 月 24 日
To keep it simple you can call inputdlg once asking for how many fields, then call it again setting the number of fields.
Rooy
2012 年 3 月 24 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!