| MATLAB Function Reference | ![]() |
str = dec2hex(d)
str = dec2hex(d, n)
str = dec2hex(d) converts the decimal integer d to its hexadecimal representation stored in a MATLAB® string. d must be a nonnegative integer smaller than 2^52.
str = dec2hex(d, n) produces a hexadecimal representation with at least n digits.
To convert decimal 1023 to hexadecimal,
dec2hex(1023)
ans =
3FFdec2bin, format, hex2dec, hex2num
![]() | dec2bin | decic | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |