How to add header to cell matrix
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abdulaziz Abutunis
am 23 Feb. 2022
Bearbeitet: per isakson
am 23 Feb. 2022
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 Kommentare
Akzeptierte Antwort
per isakson
am 23 Feb. 2022
Bearbeitet: per isakson
am 23 Feb. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tables finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!