%% Determine Matrix from Character Vector and String
% Create an array of characters. Determine whether it is a matrix.

A = 'Hello, World!';
TF = ismatrix(A)

% Check the dimension of A using size. A is a matrix of size 1-by-13.

size(A)

% Now create a string scalar by enclosing a piece of text in double quotes.

A = "Hello, World!";

% Check whether the scalar A of size 1-by-1 is also a matrix.

TF = ismatrix(A)

%
% Copyright 2018 The MathWorks, Inc.