フィルターのクリア

How to calculate the one's complement of the binary representation of a single precision variable in Simulink (or embedded Matlab)?

1 回表示 (過去 30 日間)
Ralf
Ralf 2016 年 9 月 2 日
編集済み: Ralf 2016 年 9 月 2 日
Hello everybody, I need to to convert a Simulink signal with data type 'single' to its one's complement. I tried to use a data type conversion block to convert the single precision signal to a uint32 signal, with 'equal stored integer (SI)' option activated. Then I wanted to pass it through a 'bitwise NOT' block to get the one's complement.
But the data type conversion didn't work as expected. It neglects all fractional digits.
Thanks a lot, Ralf

回答 (0 件)

カテゴリ

Help Center および File ExchangeString についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by