How do I determine if a word has a certain character in it?
2 ビュー (過去 30 日間)
古いコメントを表示
How do I determine if a word has a certain character in it?
For example if I have a word ?????? and want to know if the letter c is in it?
0 件のコメント
採用された回答
TastyPastry
2015 年 11 月 4 日
編集済み: TastyPastry
2015 年 11 月 4 日
If you only want to know whether or not the letter is in the word...
hasLetter = any(myWord == 'c');
1 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!