How to select the first letter of every word
9 ビュー (過去 30 日間)
古いコメントを表示
I have no idea how I would go about doing this
Input: I like eating pizza Output: Ilep
0 件のコメント
採用された回答
Mohammad Abouali
2015 年 12 月 5 日
編集済み: Mohammad Abouali
2015 年 12 月 5 日
str='I like eating pizza';
str2=cellfun(@(c) c(1),strsplit(str))
6 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!