フィルターのクリア

Real Value Conversion to Binary with Range

4 ビュー (過去 30 日間)
b
b 2012 年 5 月 11 日
Again, i write on the same topic. Sorry for that.
Within the range values (e.g. [0,25]) how can i convert my real numbers to binary digits. The number of bits must be 15..
Thanks

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 11 日
dec2bin(round(Values * 2^10), 15) - '0'

その他の回答 (1 件)

b
b 2012 年 5 月 11 日
Thanks again.
Do you have any idea to convert the binary digits to real values??
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 5 月 11 日
Let B be the binary digits. Then
bin2dec(char(B + '0')) ./ 2^10

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

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by