How to convert a variable which has binary data in .mat format to .txt?

1 回表示 (過去 30 日間)
N M Channabasavayya
N M Channabasavayya 2019 年 11 月 18 日
コメント済み: N M Channabasavayya 2019 年 11 月 21 日
I have 228796×8 double data in .mat format.I need to convert that into .txt format.How can I do that? Please help me out. Thank you!

採用された回答

Walter Roberson
Walter Roberson 2019 年 11 月 18 日
save() with the -ascii -double options is one way. However, if I recall, this can lose the last bit or two of precision, so if you need to be able to exactly reproduce the double, slightly different means would be needed. For example with R2019b there is a new writematrix() routine. Or you could use dlmwrite() if you pass in the Precision option.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by