how convert float in 4 uint8?

4 Ansichten (letzte 30 Tage)
TheGreatVolpe
TheGreatVolpe am 24 Okt. 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

Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by