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!