how to put heading for columns of matrix?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (3)
Azzi Abdelmalek
le 4 Oct 2013
h={'I' 'J' 'K'}
A= [2 3 4;4 5 4;3 8 7]
M=[h;num2cell(A)]
5 commentaires
hadiqa khan
le 2 Avr 2018
the table window appears with the name figure how to name this table created by code provided by you??
Jonathan Sullivan
le 4 Oct 2013
If you have MATLAB 2013b, I would look into using tables
doc table
2 commentaires
Jonathan Sullivan
le 7 Oct 2013
No but earlier versions of MATLAB have datasets in the statistics toolbox. They provide similar functionality.
doc dataset
Voir également
Catégories
En savoir plus sur LaTeX dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!