writetable for a double entry table
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sim
am 18 Okt. 2022
Beantwortet: Kevin Holly
am 18 Okt. 2022
labels_1 = {'FirstName' 'Height' 'Weight' 'BloodPressure'}
labels_2 = {'Garcia' 'Johnson' 'Wu'}
B = table({'Michael';'Beverly';'Alice'},...
[64;69;67],...
[119;163;133],...
[122 80; 109 77; 117 75],...
'VariableNames',labels_1,...
'RowNames',labels_2)
writetable(B,fullfile(path_save_table, 'B.csv'));
....the saved excel file does not show the first column on the left with the corresponding labels, i.e.:
labels_2 = {'Garcia' 'Johnson' 'Wu'}
Any suggestion in order to show the first column with the labels ?
0 Kommentare
Akzeptierte Antwort
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!