フィルターのクリア

how to put heading for columns of matrix?

19 ビュー (過去 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 Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by