num2hex
- :
s =num2hex(x)¶ - :
c =num2hex(x, "cell")¶ Return the hexadecimal digits of the stored bit pattern of each element of x.
The digits are lower case and most significant first. Doubles use 16 digits, singles 8, and integer classes twice their byte width; negative integers appear in two’s complement form. Character data gives two digits for the code of each character.
With one argument the result is a character matrix that has one row for each element of x, taken in column-major order. If the second argument
"cell"is given, a cell array of strings is returned instead.Complex, logical and non-numeric inputs are not accepted.