This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Binary representation of stored integer of fi object




bin(a) returns the stored integer of fi object a in unsigned binary format as a character vector. bin(a) is equivalent to a.bin.

Fixed-point numbers can be represented as

real-world value=2fraction length×stored integer

or, equivalently as

real-world value=(slope×stored integer)+bias

The stored integer is the raw binary number, in which the binary point is assumed to be at the far right of the word.


The following code

a = fi([-1 1],1,8,7);
y = bin(a)
z = a.bin


y = 

		10000000   01111111

z = 

		10000000   01111111

See Also

| | |

Introduced before R2006a