Info
この質問は閉じられています。 編集または回答するには再度開いてください。
i need to get data from list box as matrix like if i have list box and have values i need to order value as matix
1 回表示 (過去 30 日間)
古いコメントを表示
4
5
5
7
8
5
4
3
i want get matrix
a=[4 5 5 7;8 5 4 3];
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 6 月 9 日
a = reshape( str2double(get(handles.listbox1, 'String')), [], 2);
1 件のコメント
Walter Roberson
2016 年 6 月 9 日
If the data is in two text columns in the listbox, then
a = str2num(get(handles.listbox1, 'String'));
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!