Exporting a 3D file
16 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!