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

9 vues (au cours des 30 derniers jours)
Sanjeev Kumar
Sanjeev Kumar le 20 Fév 2019
Commenté : Sanjeev Kumar le 11 Mar 2019
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 commentaires
Adam Danz
Adam Danz le 27 Fév 2019
Why not use dec2bin()?
dec2bin(7)
Sanjeev Kumar
Sanjeev Kumar le 11 Mar 2019
@Adam Danz , I guess dec2bin or bin2dec block is not available in Simulink till 2017b release.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Block Libraries dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by