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?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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.
Risposte (1)
Dishant Arora
il 18 Mar 2014
doc menu
doc textscan
4 Commenti
Rick Szumski
il 18 Mar 2014
Dishant Arora
il 19 Mar 2014
Modificato: Dishant Arora
il 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
il 19 Mar 2014
Dishant Arora
il 19 Mar 2014
I didn't notice that. See listdlg , It let's you make multiple selection.
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!