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?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Dishant Arora
2014 年 3 月 18 日
doc menu
doc textscan
4 件のコメント
Rick Szumski
2014 年 3 月 18 日
Dishant Arora
2014 年 3 月 19 日
編集済み: Dishant Arora
2014 年 3 月 19 日
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
2014 年 3 月 19 日
Dishant Arora
2014 年 3 月 19 日
I didn't notice that. See listdlg , It let's you make multiple selection.
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!