%% Number of Characters in String Scalar
% Starting in R2017a, you can create a string using double quotes. The result is a 1-by-1 string array, or string scalar.

str = "Hello, World"

%
% Return the number of characters in str.

L = strlength(str)

% Copyright 2012 The MathWorks, Inc.