| MATLAB Function Reference | ![]() |
d = hex2dec('hex_value')
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.
hex2dec('3ff')
ans =
1023For a character array S,
S = 0FF 2DE 123 hex2dec(S) ans = 255 734 291
dec2hex, format, hex2num, sprintf
![]() | hess | hex2num | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |