Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting decimal to binary data in Simulink

1,882 views
Skip to first unread message

Laura

unread,
May 18, 2005, 12:22:11 PM5/18/05
to
Hello again! In my program I need to work with decimal and binary
data, so there would be really useful a block that allows me to pass
data from decimal to binary and from binary to decimal. Is there any
block in Simulink that perfoms that operation? If there isn't any
block like this in Simulink, is there any equivalent function in
Matlab that allows me to execute this?

Thank you very much for your help.

Regards,
Laura

Steve Conahan

unread,
May 18, 2005, 7:03:48 PM5/18/05
to
"Laura" <alee...@SPAMgmail.com> wrote in message
news:ef065...@webx.raydaftYaTP...

Hi Laura,

There are two useful Simulink blocks that may help you with this task:

- "Display" (to view signal values in many different formats, including
decimal and hex and binary).

- "Data Type Conversion" (to convert to and from various data types).

hth,
Steve


Amistad

unread,
May 18, 2005, 9:18:18 PM5/18/05
to
Hi, Laura:
decimal to binary: Integer to binary conversion
http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/integertobitconverter.html

binary to decimal: binary to integer conversion
http://www.mathworks.com/access/helpdesk/help/toolbox/commblks/ref/bittointegerconverter.html


--
Amistad Hou

"Laura" <alee...@SPAMgmail.com> ??? news:ef065...@webx.raydaftYaTP
???...

0 new messages