MATLAB: How to determine if a word has a certain character in it

character

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?

Best Answer

If you only want to know whether or not the letter is in the word...
hasLetter = any(myWord == 'c');
Related Question