split a hexadecimal vector

8 ビュー (過去 30 日間)
mays afif
mays afif 2015 年 1 月 19 日
コメント済み: mays afif 2015 年 1 月 20 日
Hi for all i have a binary vector and i converting it to hexadecimal and i didn't have any problem but the problem is split the hexadecimal vector
this vector: 'D2D370A2' i need : D 2 D 3 7 0 A 2
can i find anyone help me
  1 件のコメント
James Tursa
James Tursa 2015 年 1 月 19 日
What do you mean by "split"? Is the original number a string? What is the class of variable you want for a result? Double? Or ...?

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

採用された回答

Guillaume
Guillaume 2015 年 1 月 19 日
s = 'D2D370A2';
regexprep(s, '.(?=.)', '$0 ')
or
s = 'D2D370A2';
strjoin(num2cell(s))
or many other ways...
  1 件のコメント
mays afif
mays afif 2015 年 1 月 20 日
thanks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by