%% Find Case-Insensitive Match in Cell Array
% Find text that matches the word 'once' in a cell array of character vectors. Ignore case.

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

% When you ignore case, there is one occurrence of s1 in the array s2, and it occurs at the element s2(1,1).
% Copyright 2012 The MathWorks, Inc.