フィルターのクリア

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,[])');
  1 件のコメント
David Hill
David Hill 2021 年 1 月 27 日
b=hex2dec(reshape(options,4,[])');%need the transpose '

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by