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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by