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 Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by