Can a gui read a list from a file, open a new window containing that list, and allow the user to select items from that list? If so, what commands/topics should I study?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Want to create a GUI run-time listing (upfront there are an unknown # of items with unknown labels) using items read from a file during execution & allow user to select items from this dynamic list.
Réponses (1)
Dishant Arora
le 18 Mar 2014
doc menu
doc textscan
4 commentaires
Rick Szumski
le 18 Mar 2014
Dishant Arora
le 19 Mar 2014
Modifié(e) : Dishant Arora
le 19 Mar 2014
Try this:
List = {'Channel#1' , 'Channel#2' , 'Channel#3', 'Channel#4'};
Choice = menu('Choose a channel' , List{1:length(List)})
selectedChannel = List{Choice}
Rick Szumski
le 19 Mar 2014
Dishant Arora
le 19 Mar 2014
I didn't notice that. See listdlg , It let's you make multiple selection.
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!