%% Select Substrings After Position
% Create strings after specified positions.
% Starting in R2017a, you can create strings using double quotes.

str = "Edgar Allen Poe"

%
% Select the substring after the 12th character.

newStr = extractAfter(str,12)

%
% Select substrings from each element of a string array. When you specify different positions with numeric arrays, they must be the same size as the input string array.

str = ["Edgar Allen Poe";"Louisa May Alcott"]
newStr = extractAfter(str,[12;11])

%
% Select substrings from each element and specify the same position.

newStr = extractAfter(str,6)

% Copyright 2012 The MathWorks, Inc.