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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
anam zahra
am 26 Okt. 2017
Kommentiert: anam zahra
am 26 Okt. 2017
how to change string 11100100 into [1 1 1 0 0 1 0 0 ]
1 Kommentar
Akzeptierte Antwort
Jos (10584)
am 26 Okt. 2017
This is a neat trick for such a conversion:
s = '0111001010'
v = s - '0'
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!