HEX2DEC HEX2DEC Convert Hexadecimal Numbers To Decimal Usage Converts a hexadecimal number (encoded as a string matrix) into integers. The syntax for its use is y = hex2dec(x) where x is a character matrix where each row represents an integer in hexadecimal form. The output is of type FM_DOUBLE.