In GUI, how I can assign any matrix to listbox as a matrix form?
1 view (last 30 days)
Show older comments
for example, a=[1 2 3;4 5 6;7 8 9] is a matrix.
I wanna put this matrix into the listbox as a 3x3 matrix form
2 Comments
Walter Roberson
on 15 May 2013
How many listbox entries are to be constructed from this? Is it intended that the matrix all go into a single entry?
Accepted Answer
Azzi Abdelmalek
on 15 May 2013
a=[1 2 3;4 5 6;7 8 9]
set(handles.listbox1,'String',num2str(a))
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!