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

2 Ansichten (letzte 30 Tage)
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!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Nov. 2019
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.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by