covert 128 binary string into hex decimal

29 views (last 30 days)
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

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!