%% Arrays of Different Sizes
% Determine whether arrays of different sizes are matrices.
% Create an array of size 1-by-3. Determine whether it is a matrix.

A1 = zeros(1,3);
TF = ismatrix(A1)

% Create an empty array of size 0-by-3. Determine whether it is a matrix. A 2-D empty array is a matrix.

A2 = zeros(0,3);
TF = ismatrix(A2)

% Create an array of size 1-by-3-by-2. Determine whether it is a matrix. A 3-D array is not a matrix.

A3 = zeros(1,3,2);
TF = ismatrix(A3)

%
% Copyright 2018 The MathWorks, Inc.