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!