automatically change the string of a uicontrol (a popupmenu)
2 次查看(过去 30 天)
显示 更早的评论
This is my question :
I have a variable (call Scenario) where I have a struct, and more specific a struct of name (come from an folder, anyway).
My question is : Can I automatically put this struct of name in the string of my popupmenu when I create the uicontrol ?
Thanks.
0 个评论
采纳的回答
Walter Roberson
2011-4-29
set(HandleOfControl, 'String', {StructureName.FieldName})
For example,
fileinfo = dir('*.jpg');
set(H, 'String', {fileinfo.name});
0 个评论
更多回答(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!