Binary to Decimal conversion in Simulink and vice versa

조회 수: 162 (최근 30일)
Paulo Melo
Paulo Melo 2012년 2월 9일
댓글: ghibeche 2022년 12월 30일
Hi!
I've been trying to find ways to convert decimal bytes to binary under Simulink (simmilar to Matlab's bin2dec and dec2bin), but I haven't figured out what block to use. For the time being, I coded my own simulink Dec<->Bin converter that works, but I think it is not very fast. Has anyone been able to do these conversions based on any Simulink blocks? Thanks, Paulo

채택된 답변

Rick Rosson
Rick Rosson 2012년 2월 9일
Please see the following pages in the doc:
HTH.
  댓글 수: 4
Amee Badiani
Amee Badiani 2016년 8월 20일
Hello Sir,
My data is decimal(6.024, 4.267,....)How shall I convert that? I tried using the suggested blocks but its not working.!
ghibeche
ghibeche 2022년 12월 30일
Hi i have questions " i want function like unit 64 but generate 56 bit"

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by