%% Find Text Array Elements Beginning With String
% Create a string array. Use strmatch to find elements of strarray that begin with the text "max".

strarray = ["max" "minimax" "maximum"];
x = strmatch("max", strarray)

% Copyright 2020 The MathWorks, Inc.