Read half precision float (float16 IEEE 754r) binary data in matlab
- by Michael
you have been a great help last time, i hope you can give me some advise this time, too.
I read a binary file into matlab with bit16 (format = bitn) and i get a string of ones and zeros.
bin = '1 00011 1111111111' (16 bits: 1. sign, 2-6. exponent, 7-16. mantissa)
According to ftp://www.fox-toolkit.org/pub/fasthalffloatconversion.pdf it can be…