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?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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.
Antworten (1)
Dishant Arora
am 18 Mär. 2014
doc menu
doc textscan
4 Kommentare
Rick Szumski
am 18 Mär. 2014
Dishant Arora
am 19 Mär. 2014
Bearbeitet: Dishant Arora
am 19 Mär. 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
am 19 Mär. 2014
Dishant Arora
am 19 Mär. 2014
I didn't notice that. See listdlg , It let's you make multiple selection.
Diese Frage ist geschlossen.
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!