Info
この質問は閉じられています。 編集または回答するには再度開いてください。
I have a n*m matrix which all elements strings. I wanna put particular character above on these columns.
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Walter Roberson
2013 年 11 月 4 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!