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!