%% Determine Scalar from Matrix
% Create a 2-by-2 matrix. Determine whether it is a scalar.

A = [1 2; 3 4];
TF = isscalar(A)

% Check whether the element at the first row and second column of the matrix is a scalar.

TF = isscalar(A(1,2))

%
% Copyright 2018 The MathWorks, Inc.