Garbage values when storing the data into .dat file
古いコメントを表示
Hello there, I have a 3D array having data type float. When i store this array into a .txt or .mat file and then open it, it has only random data.

I am using the following command: save('test.txt','x'); Can someone help me?
採用された回答
その他の回答 (2 件)
Walter Roberson
2017 年 2 月 27 日
save('test.txt', 'x', '-ASCII')
Shashi TG
2017 年 2 月 27 日
0 投票
1 件のコメント
Walter Roberson
2017 年 2 月 27 日
Sorry, I overlooked that it is 3D. There is no standard text representation for 3D arrays.
It would be possible to write the array to a .m file as code that would recreate the 3D array. For example it could build all the slides and cat(3) them together.
カテゴリ
ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
