automatically change the string of a uicontrol (a popupmenu)

1 回表示 (過去 30 日間)
Sébastien Malengé
Sébastien Malengé 2011 年 4 月 29 日
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.

採用された回答

Walter Roberson
Walter Roberson 2011 年 4 月 29 日
set(HandleOfControl, 'String', {StructureName.FieldName})
For example,
fileinfo = dir('*.jpg');
set(H, 'String', {fileinfo.name});

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by