Binary to Decimal conversion in Simulink and vice versa

170 vues (au cours des 30 derniers jours)
Paulo Melo
Paulo Melo le 9 Fév 2012
Commenté : ghibeche le 30 Déc 2022
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

Réponse acceptée

Rick Rosson
Rick Rosson le 9 Fév 2012
Please see the following pages in the doc:
HTH.
  4 commentaires
Amee Badiani
Amee Badiani le 20 Août 2016
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 le 30 Déc 2022
Hi i have questions " i want function like unit 64 but generate 56 bit"

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by