Matrix of Decimals to Binary file.

1 view (last 30 days)
Alejandro Lavernia
Alejandro Lavernia on 18 Jan 2019
Hi,
I'm having some difficulty storing a large matrix of fixed decimal numbers (e.g. 123.45) into a ".bin" file using fwrite/fread.
Within fwrite I've designated the precision as "double" that makes the binary file 8 times longer and makes it impossible to reassemble into the original matrix upon calling.
Is there a converter function I should use or does this application not work with fwrite/fread?
Thanks.

Answers (0)

Community Treasure Hunt

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

Start Hunting!