Integer to Binary Conversion in Simulink

12,652

Solution 1

You can use a Conversion block to convert back and forth between binary (i.e. boolean) types and various integer (int8, uint8, int16, etc.) or floating point (single or double) types.

Solution 2

I think this is what you're looking for:

How do I visualize the fixed-point data in binary or hex format using Simulink?

Share:
12,652
Kiran
Author by

Kiran

Hello, I am a full-time freelancer based in India. I am a self-taught software developer working on a number of technologies. Most of the time, I will be working in Python, Matlab, PHP/MySQL, C#, bash scripting. If you looking at my profile after seeing some of the questions/answers I have posted in this forum, I probably have the solution. Contact me at [email protected], I would be happy to help you. My interests include : Data Analysis, Data Science Data Mining, Web scraping (Have worked extensively with www.mca.gov.in, CIBIL, Bloomberg.com) API Development/Integration Blockchain I work here & here and can be reachable on Telegram here

Updated on June 05, 2022

Comments

  • Kiran
    Kiran almost 2 years

    I know its a very basic question. But still, I am struggling to convert Binary to Integer and vice-versa in Simulink.

    I could use a function block and use inbuilt Matlab functions to do it. But I, intend to use the Simulink blocks to convert Binary to decimal number.

    Please suggest me how to do it or any pointers in the internet would be helpful.