covert 128 binary string into hex decimal

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

 Accepted Answer

James Tursa
James Tursa on 17 Dec 2020
Edited: James Tursa on 17 Dec 2020
b = your binary digits vector
d = [8 4 2 1]*reshape(b,4,[]);
h = sprintf('%x',d);

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!