필터 지우기
필터 지우기

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