How to convert a variable which has binary data in .mat format to .txt?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
N M Channabasavayya
am 18 Nov. 2019
Kommentiert: N M Channabasavayya
am 21 Nov. 2019
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!
0 Kommentare
Akzeptierte Antwort
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)
Siehe auch
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!