hex - Hexadecimal representation of stored integer of fi object

Syntax

hex(a)

Description

hex(a) returns the stored integer of fi object a in hexadecimal format as a string. hex(a) is equivalent to a.hex.

Fixed-point numbers can be represented as

or, equivalently,

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

Examples

The following code

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

returns

y =

		80   7f

z =

		80   7f

See Also

bin, dec, int, oct

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS