Convert hexadecimal number string to double-precision number
n = hex2num(S)
n = hex2num(S), where S is a 16 character string or cell array of strings representing a hexadecimal number, returns the IEEE® double-precision floating-point number n that it represents. Fewer than 16 characters are padded on the right with zeros. If S is a cell array of strings, each row is interpreted as a double-precision number.
NaNs, infinities and denorms are handled correctly.