split a hexadecimal vector

8 vues (au cours des 30 derniers jours)
mays afif
mays afif le 19 Jan 2015
Commenté : mays afif le 20 Jan 2015
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 commentaire
James Tursa
James Tursa le 19 Jan 2015
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 ...?

Connectez-vous pour commenter.

Réponse acceptée

Guillaume
Guillaume le 19 Jan 2015
s = 'D2D370A2';
regexprep(s, '.(?=.)', '$0 ')
or
s = 'D2D370A2';
strjoin(num2cell(s))
or many other ways...
  1 commentaire
mays afif
mays afif le 20 Jan 2015
thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by