Exporting a 3D file

16 visualizaciones (últimos 30 días)
Salam
Salam el 13 de Mzo. de 2013
I am trying to export a 3D .mat file into an .xls or even a .txt file, but I cant do that as the load/write functions work only for 2D .mat files.
Any ideas?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Mzo. de 2013
If A is your 3D array
n=size(A,3)
for k=1:n
xlswrite('yourfile.xls',A(:,:,k),sprintf('sheet%d',k))
end
  1 comentario
Salam
Salam el 14 de Mzo. de 2013
The problem is that the file is large (2^9*2^9*313). Excel cant handle more than 256 columns, and I cant transpose this directly as it is a 3D array.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by