how to put heading for columns of matrix?

25 visualizaciones (últimos 30 días)
suvadip paul
suvadip paul el 4 de Oct. de 2013
Comentada: Busra Unlu el 3 de En. de 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

Respuestas (3)

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

Iniciar sesión para comentar.


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

Iniciar sesión para comentar.


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

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by