covert 128 binary string into hex decimal

29 visualizzazioni (ultimi 30 giorni)
i have 128 bit binary string how to convert it into hex decimal string ?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by