MATLAB: Covert 128 binary string into hex decimal

hex converter

i have 128 bit binary string how to convert it into hex decimal string ?

Best Answer

b = your binary digits vector
d = [8 4 2 1]*reshape(b,4,[]);
h = sprintf('%x',d);
Related Question