how to put heading for columns of matrix?
10 ビュー (過去 30 日間)
古いコメントを表示
I want to put a heading for each column of a output matrix like
I J K
2 3 4
4 5 4
3 8 7
0 件のコメント
回答 (3 件)
Azzi Abdelmalek
2013 年 10 月 4 日
h={'I' 'J' 'K'}
A= [2 3 4;4 5 4;3 8 7]
M=[h;num2cell(A)]
5 件のコメント
hadiqa khan
2018 年 4 月 2 日
the table window appears with the name figure how to name this table created by code provided by you??
Jonathan Sullivan
2013 年 10 月 4 日
If you have MATLAB 2013b, I would look into using tables
doc table
2 件のコメント
Jonathan Sullivan
2013 年 10 月 7 日
No but earlier versions of MATLAB have datasets in the statistics toolbox. They provide similar functionality.
doc dataset
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!