split a hexadecimal vector

7 visualizaciones (últimos 30 días)
mays afif
mays afif el 19 de En. de 2015
Comentada: mays afif el 20 de En. de 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 comentario
James Tursa
James Tursa el 19 de En. de 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 ...?

Iniciar sesión para comentar.

Respuesta aceptada

Guillaume
Guillaume el 19 de En. de 2015
s = 'D2D370A2';
regexprep(s, '.(?=.)', '$0 ')
or
s = 'D2D370A2';
strjoin(num2cell(s))
or many other ways...

Más respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by