Thread Subject: Convert decimal to 24-bit binary

Subject: Convert decimal to 24-bit binary

From: Blaine

Date: 24 Nov, 2009 02:52:04

Message: 1 of 2

How can i convert a decimal number to binary number LIMITED to 24-bits? I especially need to know how to do this in Simulink, but knowing how to do it in ML would help as well, seeing that i can just use an m-file block.

Subject: Convert decimal to 24-bit binary

From: James Tursa

Date: 24 Nov, 2009 05:23:04

Message: 2 of 2

"Blaine " <EvilDonut0@gmail.com> wrote in message <hefhok$evh$1@fred.mathworks.com>...
> How can i convert a decimal number to binary number LIMITED to 24-bits? I especially need to know how to do this in Simulink, but knowing how to do it in ML would help as well, seeing that i can just use an m-file block.

MATLAB does not have any 24-bit type. You could make 24-bit quantities stored in a 32-bit word ... would that be sufficient?

James Tursa

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
binary Blaine 23 Nov, 2009 21:54:19
simulink Blaine 23 Nov, 2009 21:54:19
rssFeed for this Thread

Contact us at files@mathworks.com