bin2hex
Convert a binary string to a hexadecimal string.
Syntax
Section titled “Syntax”v = bin2hex(b, p)Description
Section titled “Description”Returns the hex representation of binary string b. Optional p zero-pads to that minimum length.
Examples
Section titled “Examples”bin2hex('11111011') % 'FB'bin2hex('1010', 4) % '000A'