split a hexadecimal vector

조회 수: 7 (최근 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...

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by