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

Convert decimal to 24-bit binary

7 views
Skip to first unread message

Blaine

unread,
Nov 23, 2009, 9:52:04 PM11/23/09
to
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.

James Tursa

unread,
Nov 24, 2009, 12:23:04 AM11/24/09
to
"Blaine " <EvilD...@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

0 new messages