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 日間)
mahmoud elymany
mahmoud elymany 2016 年 6 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
4
5
5
7
8
5
4
3
i want get matrix
a=[4 5 5 7;8 5 4 3];

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 9 日
a = reshape( str2double(get(handles.listbox1, 'String')), [], 2);
  1 件のコメント
Walter Roberson
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!

Translated by