6

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.

1
  • What's your goal ? Value are in decimal base into Simulink but you have block such as Extract bit to use bits. Generally, you better have to think about bits than base within Simulnk. Let the visual representation outside in Matlab (or in Display blocs set to "binary") Commented Mar 9, 2011 at 10:30

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

Comments

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?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.