Skip to content

hex2dec

strings · scripts/strings/hex2dec.m

: d = hex2dec (s)

Read strings of hexadecimal digits as numbers.

Rows of a char matrix, or members of a cellstr, each give one entry of the column vector d. Digits ‘a’-‘f’ may be lower or upper case. Blanks are skipped; a string with any other character is an error.