How to split letters in a word into an array
Ältere Kommentare anzeigen
Ex: In the word 'HELLO', extract the letters 'H' 'E' 'L' 'L' 'O'
Akzeptierte Antwort
Weitere Antworten (2)
str = 'HELLO';
cellstr(str')'
Octa
am 2 Jul. 2013
If you want to extract the letters, simply extract in this way
>> str(1)
H
>> str(2)
E
>> str(3)
L
>>str(4)
L
>> str(5)
L
>> str(6)
O
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!