MATLAB: Case insensitive strfind

strfind strcmp strcmpi

I have a matrix in which there are about 100,000 sentences that I want to scan for the existence of certain words (True/false). For previous scans, searching for one exact word, I used the strfind. Nevertheless, now I have a list of 18 words which might be written in lower or upper cases in the sequences. The strcmpi which could be useful in this case only returns positive if the whole sentence consist of the word… Is there another function I missed?
Thank you

Best Answer

Hi,
one simple method would be to use lower on both the sentences and the words you are using ...
Titus