How to convert a variable which has binary data in .mat format to .txt?
1 view (last 30 days)
Show older comments
N M Channabasavayya
on 18 Nov 2019
Commented: N M Channabasavayya
on 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 Comments
Accepted Answer
Walter Roberson
on 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.
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!