MATLAB: Count words from wordlist in a text

sentimenttext;

Hello,
I have got a cell containing positiv words and a text. I first want to count the number of words in the text in complete and afterwards how many of the positive words of my cell are contained in the text.
I hope anyboday can help me.
Thanks in advance

Best Answer

You may also find ismember of interest for the last...