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 で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!