saving 3 dimensional data in excel file in a particular format

1 visualización (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by