popupmenu in GUI
26 次查看(过去 30 天)
显示 更早的评论
I made a popupmenu in GUI, but how do i populate the popup with choices? thanks
0 个评论
采纳的回答
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?'})
0 个评论
更多回答(2 个)
Dr. Seis
2012-1-25
temp_cellstr = {'choice 1';'choice 2';'choice 3'};
set(handles.your_popup_name,'String',temp_cellstr);
Or you can open the "Property Inspector" inside GUIDE and manually change the String values there.
2 个评论
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!