saving 3 dimensional data in excel file in a particular format

조회 수: 1 (최근 30일)
Ekta Sharma
Ekta Sharma 2022년 9월 20일
댓글: Ekta Sharma 2022년 9월 20일
I have a dataset A(5,100,3000) and I want to export it to excel. I want 5 sheets, each with 100 rows and 3000 columns.

채택된 답변

Akira Agata
Akira Agata 2022년 9월 20일
How about the following?
for kk = 1:5
writematrix(squeeze(A(kk,:,:)), "yourExcel.xlsx", "Sheet", kk);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by