フィルターのクリア

How to represent a quantised signal in binary form?

8 ビュー (過去 30 日間)
Sarah Ghosh
Sarah Ghosh 2014 年 2 月 9 日
回答済み: Walter Roberson 2014 年 2 月 9 日
I have a quantized sin wave with amplitude varying from -1 to +1 with each level of size 2^(-24),i.e., 24 bit quantiser. I need to represent the values (fractional and negative) as the binary numbers e.g, 0.004 should be represented as 0.0000001100 etc. How do I get that? Thanks in advance.

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 2 月 9 日
T = round(TheNumber * 2^23);
if T > 0
Q = dec2bin(T, 24) - '0';
else
Q = dec2bin(2^24 + T, 24) - '0';
end

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by