how convert float in 4 uint8?

5 次查看(过去 30 天)
TheGreatVolpe
TheGreatVolpe 2013-10-24
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by