フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to rename a sheet in a generated excel file?

1 回表示 (過去 30 日間)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2019 年 5 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Dear all, I have this code to generate an excel file, the outputs will be in sheet number 2, how can I please rename the sheet to be called (Months)?
Z={'Case1' 'Case2' 'Case3'};
D=[A1, A2, A3];
b=arrayfun(@(D) sprintf('%10.2f',D),D,'un',0);
filename = 'Data.xlsx';
W = table();..., 'VariableNames', varNames);
uc = num2cell(b, 1);
W = table(uc{:}, 'VariableNames', Z)
writetable(W,filename,'Sheet',2,'Range','A1')

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by