writetable(B,'B.csv','WriteRowNames',true);
writetable for a double entry table
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!