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

조회 수: 3 (최근 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 CenterFile Exchange에서 String에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by