MATLAB Function Reference Previous page   Next Page
hex2dec

Convert hexadecimal number string to decimal number

Syntax

Description

d = hex2dec('hex_value') converts hex_value to its floating-point integer representation. The argument hex_value is a hexadecimal integer stored in a MATLAB string. The value of hex_value must be smaller than hexadecimal 10,000,000,000,000.

If hex_value is a character array, each row is interpreted as a hexadecimal string.

Examples

For a character array S,

See Also

dec2hex, format, hex2num, sprintf


Previous page  hess hex2num Next page

© 1994-2005 The MathWorks, Inc.