Info
This question is closed. Reopen it to edit or answer.
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 view (last 30 days)
Show older comments
4
5
5
7
8
5
4
3
i want get matrix
a=[4 5 5 7;8 5 4 3];
0 Comments
Answers (1)
Walter Roberson
on 9 Jun 2016
a = reshape( str2double(get(handles.listbox1, 'String')), [], 2);
1 Comment
Walter Roberson
on 9 Jun 2016
If the data is in two text columns in the listbox, then
a = str2num(get(handles.listbox1, 'String'));
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!