s = dec2hex(n)
dec2hex(n)
n
dec2hex(1023)
'3ff'
format, hex2dec, hex2num
format
hex2dec
hex2num
(c) Copyright 1994 by The MathWorks, Inc.