Effacer les filtres
Effacer les filtres

how to divide multiple data bytes and convert it into hex ?

1 vue (au cours des 30 derniers jours)
Tayyaba Abro
Tayyaba Abro le 27 Jan 2021
Commenté : David Hill le 27 Jan 2021
I have a data in string '94040000' when I am comverting it into hexadecimal it is converting the whole data but I want to convert it in 4 bytes. please let me know how can I separate them and convert in 4 bytes?

Réponse acceptée

David Hill
David Hill le 27 Jan 2021
a='94040000';
b=hex2dec(reshape(a,4,[])');

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