%% Number of Characters in Character Vector
% Create a character vector. To return the number of characters in the character vector, use the strlength function.

chr = 'The rain in Spain.'

%

L = strlength(chr)

% Copyright 2012 The MathWorks, Inc.