Info
This question is closed. Reopen it to edit or answer.
I have a n*m matrix which all elements strings. I wanna put particular character above on these columns.
1 view (last 30 days)
Show older comments
num1=[1;2;3] %points id
num2=[30.45;32.55;33.85] %latitudes
num3=[40.55;41.22;43.62] %longitudes
num=[num1 num2 num3] %points id, latitude longitude
num=num2str(num)
set(handles.listbox1, 'String', num) %to write into the listbox in the GUI
%I wanna put Point_İd Latitude and Longitude in the first row of this matrix and write this matrix in the listbox.
Point_İd Latitude Longitude
1 30.45 40.55
2 32.55 41.22
3 33.85 43.62 %that's the structure I wanna put in the listbox.
0 Comments
Answers (1)
Walter Roberson
on 4 Nov 2013
num = { 'Point_İd Latitude Longitude'; cellstr(num2str(num)) };
to replace the existing num2str()
Please also remember to switch the listbox to a fixed-width font.
0 Comments
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!