Unsigned binary representation of stored integer of
stored integer of
b = bin(
a in unsigned binary
format as a character vector.
Fixed-point numbers can be represented as
or, equivalently as
The stored integer is the raw binary number, in which the binary point is assumed to be at the far right of the word.
bin returns the unsigned binary representation of the stored
integer of a
fi object. To obtain the binary representation of the
real-world value of a
fi object, use
View Stored Integer of
fi Object in Unsigned Binary Format
Create a signed
fi object with values
1, a word length of 8 bits, and a fraction length of 7 bits.
a = fi([-1 1], 1, 8, 7)
a = -1.0000 0.9922 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 8 FractionLength: 7
Find the unsigned binary representation of the stored integers of
b = bin(a)
b = '10000000 01111111'
a — Input array
Input array, specified as a
Introduced before R2006a