covert 128 binary string into hex decimal
29 views (last 30 days)
Show older comments
i have 128 bit binary string how to convert it into hex decimal string ?

0 Comments
Accepted Answer
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)
See Also
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!