how to put heading for columns of matrix?

조회 수: 20 (최근 30일)
suvadip paul
suvadip paul 2013년 10월 4일
댓글: Busra Unlu 2021년 1월 3일
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

답변 (3개)

Azzi Abdelmalek
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
hadiqa khan 2018년 4월 2일
the table window appears with the name figure how to name this table created by code provided by you??
Busra Unlu
Busra Unlu 2021년 1월 3일
thx

댓글을 달려면 로그인하십시오.


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

댓글을 달려면 로그인하십시오.


anahita ahrari
anahita ahrari 2018년 6월 6일
how can i add titles to a column in matlab ?

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by