Exporting a 3D file

조회 수: 13 (최근 30일)
Salam
Salam 2013년 3월 13일
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?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 13일
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
Salam
Salam 2013년 3월 14일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by