Binary to Decimal conversion in Simulink and vice versa

170 次查看(过去 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