%% Convert Character Vector

A = 'Four score and seven years ago'

%

str = string(A)

%
% str contains the same characters as A. But while A is a character vector, str is a string scalar.

c = size(A)
s = size(str)

%
% To return the number of characters in str, use the strlength function.

n = strlength(str)

% Copyright 2012 The MathWorks, Inc.