covert 128 binary string into hex decimal

24 vues (au cours des 30 derniers jours)
samah samir
samah samir le 17 Déc 2020
Commenté : samah samir le 18 Déc 2020
i have 128 bit binary string how to convert it into hex decimal string ?

Réponse acceptée

James Tursa
James Tursa le 17 Déc 2020
Modifié(e) : James Tursa le 17 Déc 2020
b = your binary digits vector
d = [8 4 2 1]*reshape(b,4,[]);
h = sprintf('%x',d);

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by