automatically change the string of a uicontrol (a popupmenu)
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Walter Roberson
il 29 Apr 2011
set(HandleOfControl, 'String', {StructureName.FieldName})
For example,
fileinfo = dir('*.jpg');
set(H, 'String', {fileinfo.name});
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!