How do I determine if a word has a certain character in it?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rebecca Hussey
il 4 Nov 2015
Commentato: Image Analyst
il 5 Nov 2015
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 Commenti
Risposta accettata
TastyPastry
il 4 Nov 2015
Modificato: TastyPastry
il 4 Nov 2015
If you only want to know whether or not the letter is in the word...
hasLetter = any(myWord == 'c');
1 Commento
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!