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!