how can we add spaces in a numeric string and then change into vector form? i.e changing 11100100 into [1 1 1 0 0 1 0 0]
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
anam zahra
el 26 de Oct. de 2017
Comentada: anam zahra
el 26 de Oct. de 2017
how to change string 11100100 into [1 1 1 0 0 1 0 0 ]
1 comentario
Respuesta aceptada
Jos (10584)
el 26 de Oct. de 2017
This is a neat trick for such a conversion:
s = '0111001010'
v = s - '0'
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!