필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Tayyaba Abro
Tayyaba Abro 2021년 1월 27일
댓글: David Hill 2021년 1월 27일
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