dec2hex

Purpose

Decimal to hexadecimal number conversion.

Synopsis

s = dec2hex(n)

Description

dec2hex(n) converts the decimal integer n to its hexadecimal representation stored in a MATLAB string.

Examples

dec2hex(1023) is the string '3ff'.

See Also

format, hex2dec, hex2num

(c) Copyright 1994 by The MathWorks, Inc.