how to put heading for columns of matrix?
15 次查看(过去 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 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!