How to add header to cell matrix
18 ビュー (過去 30 日間)
古いコメントを表示
Dear all, I have 39x1 cells. Each cell of these 39 cells has matix in it. I wanted to add header to each matrix. Is that possible in Matlab?
Thanks
Aziz
0 件のコメント
採用された回答
per isakson
2022 年 2 月 23 日
編集済み: per isakson
2022 年 2 月 23 日
No, however that depends on what you require from the "header". Is this useful? If not see table - Table array with named variables that can contain different types
data = { rand(2,3), rand(2,3), rand(2,3) };
headers = {'header 1', 'header 2', 'header 3' };
data_with_headers( 1, : ) = headers;
data_with_headers( 2, : ) = data;
data_with_headers( :, 2 )
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Numeric Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!