how convert float in 4 uint8?

5 vues (au cours des 30 derniers jours)
TheGreatVolpe
TheGreatVolpe le 24 Oct 2013
hi,
i'm trying to convert a float number (32-bit) in four uint8. i searched in internet but have not found anything that solves the problem. Two example:
X=-999 x convert in 4 uint8: 0 192 121 196 or X=-0.934 x convert in 4 uint8: 75 40 110 191
can someone help me find a function that does this?
thanks
FF

Réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by