writing large 3D .mat file into a .xls file
이전 댓글 표시
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. The problem is that the file is large (512*512*313) [ I get the 0x800A03EC error]. Excel as far as I know cant handle more than 256 columns, and I cant transpose this directly as it is a 3D array. Any ideas?
댓글 수: 4
Matt Kindig
2013년 3월 14일
How are you going to use the .xls/.txt file afterwards? Do you need it to input into another program, or just for storage in a non-binary format?
The reason I ask is because you can't (as far as I know) directly do this in a text file, but you can structure the text file as a 2D matrix with delimiters for each page (the 313 dimension). Your file could look something like this, perhaps.
==Page 1===
1,2,3,4,.....
2,4,5,1,.....
....
==Page 2===
3,3,5,5,....
5,2,6,7.....
....
==Page N===
Salam
2013년 3월 14일
Sven
2013년 3월 14일
Salam, Matt's right... the big question here is what you want to do with the data after it's exported. There are some ways you could represent your 3D data in excel (putting each "page" on a separate spreadsheet, putting each "page" below the previous "page" on a single spreadsheet, etc), but none of these ways will make it very pleasant to deal with the actual excel file.
This isn't a problem that "MATLAB can't export 3D data to excel", it's more a case of "excel isn't well suited to 3D data".
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!