writetable for a double entry table
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sim
le 18 Oct 2022
Réponse apportée : Kevin Holly
le 18 Oct 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Tables dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!