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
This question is closed. Reopen it to edit or answer.
Show older comments
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.
Answers (1)
Dishant Arora
on 18 Mar 2014
doc menu
doc textscan
4 Comments
Rick Szumski
on 18 Mar 2014
Dishant Arora
on 19 Mar 2014
Edited: Dishant Arora
on 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
on 19 Mar 2014
Dishant Arora
on 19 Mar 2014
I didn't notice that. See listdlg , It let's you make multiple selection.
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!