MATLAB: How to find two continuous words appear in the sentence

continuous wordsindextext;

sir, Input cell arry
A= {' book is good','camera is working good', 'the picture quality is good'}
Query B={'is good'}
how to find index of the query string is appeared in the sentence.
my output is = 1,3
thanks.

Best Answer

Use strfind .
For example, like this:
find(~cellfun('isempty',strfind(A,'is good')))