How to covert a decimal number to binary in simulink 2017b?

11 ビュー (過去 30 日間)
Sanjeev Kumar
Sanjeev Kumar 2019 年 2 月 20 日
コメント済み: Sanjeev Kumar 2019 年 3 月 11 日
If I have a constant block with value say A=7 and I need binary output as 0111.
What should I do for that?
Note-BitToInteger/IntegerToBit blocks are not available in 2017b.
  4 件のコメント
Adam Danz
Adam Danz 2019 年 2 月 27 日
Why not use dec2bin()?
dec2bin(7)
Sanjeev Kumar
Sanjeev Kumar 2019 年 3 月 11 日
@Adam Danz , I guess dec2bin or bin2dec block is not available in Simulink till 2017b release.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by