How to translate 32-bit number to float number
Afficher commentaires plus anciens
The acquired data is expressed as '6D61803F', this may be a little-endian. I translated it to '3F80616D', then I got the float number 1.002973, this was the real data!
Now I used
q = quantizer(q);
hex2num(q, '6D61803F') or hex2num(q, '3F80616D')
Both of those did not get the real one!
What's the problem?
Thanks
3 commentaires
Walter Roberson
le 28 Juil 2016
Please show the struct q that you are passing to quantize() to create the quantizer object.
wenlong
le 29 Juil 2016
Modifié(e) : Walter Roberson
le 29 Juil 2016
wenlong
le 1 Août 2016
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Cast and Quantize Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!