MATLAB Answers

Variable Strings in popup menu

2 ビュー (過去 30 日間)
Marco Baglio
Marco Baglio 2016 年 8 月 22 日
コメント済み: Marco Baglio 2016 年 8 月 22 日
I would like to know if it is possible to set a variable number of strings in a popupmenu depending on the number of an edit text. I'm working only with GUIDE and I looked for it on the web but I couldn't find anything for GUIDE. Thanks in advance

回答 (1 件)

Adam 2016 年 8 月 22 日
Yes, just set the popupmenu string programmatically. Doesn't matter if you are in GUIDE or not, you can still set the popupmenu string whenever you want.
In your case you would want to do it in the editbox callback I assume.
  1 件のコメント
Marco Baglio
Marco Baglio 2016 年 8 月 22 日
Could you give me a simple example please?



Community Treasure Hunt

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

Start Hunting!

Translated by