Binary to Decimal conversion in Simulink and vice versa

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 日

4 投票

Please see the following pages in the doc:
HTH.

5 件のコメント

Paulo Melo
Paulo Melo 2012 年 2 月 9 日
Thanks! That was simple!
syed zulfiqar ali  zaidi
syed zulfiqar ali zaidi 2014 年 4 月 9 日
THANKS! MR RICK ROSSON
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"
Walter Roberson
Walter Roberson 2024 年 11 月 12 日
Abhiraj Mangesh correctly notes, "Links do not exist any more, Links have been removed"
Current links are:

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

その他の回答 (0 件)

カテゴリ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by