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

2 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by