%% Determine If Character Vector Starts with Substrings
% Create a character vector that contains the name of a file. Determine if the name starts with different substrings.

chr = 'data-analysis.ppt'

%

TF = startsWith(chr,'data')

%

TF = startsWith(chr,'test')

% Copyright 2012-2020 The MathWorks, Inc.