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 SolutionsMATLAB: How to use regexpi on a phrase that has a “*” If I understood right using \* instead of * should work. MATLAB: Doing a ‘strfind’ with apostrophe in the string Use double apostrophes everywhere you have an apostrophe in your string, e.g:A = findstr('''', '''REACQ''=''Y''') Related QuestionHow to count certain characters in a wordWord frequency
Best Answer