%% Extract Character at Numeric Position
% Create a string.

str = "All's well that ends well"

%
% Extract the first character in the string.

extract(str,1)

%
% Extract the last character.

extract(str,strlength(str))

%
% Copyright 2020 The MathWorks, Inc.