popupmenu in GUI

106 ビュー (過去 30 日間)
Andy 2012 年 1 月 25 日
回答済み: beginner94 2018 年 1 月 31 日
I made a popupmenu in GUI, but how do i populate the popup with choices? thanks


Sean de Wolski
Sean de Wolski 2012 年 1 月 25 日
Press return in the string option in GUIDE to start new lines.
Programatically, use a cellarray of strings for the string option:
uicontrol('style','popup','string',{'option 1';'hello world';'Is it Friday yet?'})

その他の回答 (2 件)

Dr. Seis
Dr. Seis 2012 年 1 月 25 日
temp_cellstr = {'choice 1';'choice 2';'choice 3'};
Or you can open the "Property Inspector" inside GUIDE and manually change the String values there.
  2 件のコメント
Dr. Seis
Dr. Seis 2012 年 1 月 25 日
You can... you just need to click the list icon next to the edit dialog


beginner94 2018 年 1 月 31 日
How can I connect the values I added to the popupmenu with their files? They are configfiles in this case, so no m files.


Community Treasure Hunt

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

Start Hunting!

Translated by