フィルターのクリア

How to perform floating point signed 2's complement with mantissa of 3 and exponent of 9 for - 7/8

4 ビュー (過去 30 日間)
I used dec2bin with however it is fixed point representation. I am using Matlab 2019b
P = dec2bin((mod(num), 2^bits),bits)
  4 件のコメント
Rohit Mallampati
Rohit Mallampati 2020 年 7 月 22 日
7/8 goes to 0.875 which I need to convert to floating point 2's complement representation. In fixed point, first we take 7/8 into binary and then add 1 to LSB to get -7/8. However I want to use floating point to represent (fraction in precise).
I can put in in this way, I need to quantise coefficients of a filter to 12 bits (mantissa=3 and exponent= 9) using floating point representation.
Rohit Mallampati
Rohit Mallampati 2020 年 7 月 22 日
The code that I wrote is for fixed point 2's complement.

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by