how to conver a text to a matlab matrix or vector (every symbol in text fill one cell)
조회 수: 2 (최근 30일)
이전 댓글 표시
p.e i have this in text: himynameis george and i want this: [h,i,m,y,n,a,m,e,i,s, ,g,e,o,r,g,e]
or the askii bits of every symbol in every cell
thenks
댓글 수: 0
채택된 답변
Image Analyst
2013년 1월 7일
Why do you want the complexity of a cell array when you have only one character per cell and a character array would work just fine?
characterArray = 'himynameis george'
asciiArray = int32(characterArray)
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!