how to put heading for columns of matrix?

13 Ansichten (letzte 30 Tage)
suvadip paul
suvadip paul am 4 Okt. 2013
Kommentiert: Busra Unlu am 3 Jan. 2021
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

Antworten (3)

Azzi Abdelmalek
Azzi Abdelmalek am 4 Okt. 2013
h={'I' 'J' 'K'}
A= [2 3 4;4 5 4;3 8 7]
M=[h;num2cell(A)]
  5 Kommentare
hadiqa khan
hadiqa khan am 2 Apr. 2018
the table window appears with the name figure how to name this table created by code provided by you??
Busra Unlu
Busra Unlu am 3 Jan. 2021
thx

Melden Sie sich an, um zu kommentieren.


Jonathan Sullivan
Jonathan Sullivan am 4 Okt. 2013
If you have MATLAB 2013b, I would look into using tables
doc table
  2 Kommentare
suvadip paul
suvadip paul am 5 Okt. 2013
Is there any way to get Matlab 2013b free?
Jonathan Sullivan
Jonathan Sullivan am 7 Okt. 2013
No but earlier versions of MATLAB have datasets in the statistics toolbox. They provide similar functionality.
doc dataset

Melden Sie sich an, um zu kommentieren.


anahita ahrari
anahita ahrari am 6 Jun. 2018
how can i add titles to a column in matlab ?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by