%% Find Text in Cell Array
% Find the word 'upon' in a cell array of character vectors.

s1 = 'upon';
s2 = {'Once','upon';
      'a','time'};
tf = strcmp(s1,s2)

% There is only one occurrence of s1 in array s2, and it occurs at element s2(1,2).
% Copyright 2012 The MathWorks, Inc.