How to best to accept list input from a dialog box?
3 ビュー (過去 30 日間)
古いコメントを表示
I have a project in which I would like to have the user input a list of numbers that represents column numbers of a cell array by using a dialog box, e.g. similiar to warndlg/
0 件のコメント
回答 (2 件)
Sean de Wolski
2012 年 2 月 3 日
uicontrol('style','list','string',cellfun(@num2str,num2cell(1:10)','uni',false))
0 件のコメント
Walter Roberson
2012 年 2 月 3 日
inputdlg() accepts any string, including strings that contain commas or spaces. You can use str2num() or str2double() to convert the string representations in to numeric values.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!