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!