MATLAB Function Reference Previous page   Next Page
num2hex

Convert singles and doubles to IEEE hexadecimal strings.

Syntax

Description

If X is a single or double precision array with n elements, num2hex(X) is an n-by-8 or n-by-16 char array of the hexadecimal floating-point representation. The same representation is printed with format hex.

Examples

returns

returns

See Also

hex2num, dec2hex, format


Previous page  num2cell num2str Next page

© 1994-2005 The MathWorks, Inc.