%% Ignore Case
% Create a string array that contains names. Determine which names contain anne, ignoring case.
% Starting in R2017a, you can create strings using double quotes.

str = ["Anne","Elizabeth","Marianne","Tracy"]

%

pat = "anne";
TF = contains(str,pat,'IgnoreCase',true)

%
% Display the strings that contain anne. Index back into str using TF.

str(TF)

% Copyright 2012 The MathWorks, Inc.