How to split letters in a word into an array
古いコメントを表示
Ex: In the word 'HELLO', extract the letters 'H' 'E' 'L' 'L' 'O'
採用された回答
その他の回答 (2 件)
str = 'HELLO';
cellstr(str')'
Octa
2013 年 7 月 2 日
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
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!