how to divide multiple data bytes and convert it into hex ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Tayyaba Abro
il 27 Gen 2021
Commentato: David Hill
il 27 Gen 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/501913/image.png)
0 Commenti
Risposta accettata
David Hill
il 27 Gen 2021
a='94040000';
b=hex2dec(reshape(a,4,[])');
1 Commento
David Hill
il 27 Gen 2021
b=hex2dec(reshape(options,4,[])');%need the transpose '
Più risposte (0)
Vedere anche
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!