%% Determine Which Character Array Elements Are Letters
% Create different arrays, and then determine which array elements are letters.

chr = '123 Main St.'

%

TF = isletter(chr)

%
% Starting in R2016b, you can convert character arrays to strings using the string function. Convert chr to a string, and test it. The input argument is not a character array, so isletter returns 0.

str = string(chr)

%

TF = isletter(str)

% Copyright 2012 The MathWorks, Inc.