| Fixed-Point Toolbox™ | ![]() |
hex(a)
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.
The following code
a = fi([-1 1],1,8,7); y = hex(a) z = a.hex
returns
y = 80 7f z = 80 7f
![]() | hankel | hex2num | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |