how convert float in 4 uint8?

8 views (last 30 days)
TheGreatVolpe
TheGreatVolpe on 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

Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!