%% Ignore Case
% Create a string array.

str = ["Mercury","Venus","Earth","Mars"]

%
% Find the element of str that matches "earth", ignoring case.

TF = matches(str,"earth","IgnoreCase",true)

%
% Display the matching string.

str(TF)

%
% Copyright 2019 The MathWorks, Inc.