%% Determine Scalar

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

%

B = A(1,1);
isscalar(B)

% Copyright 2012 The MathWorks, Inc.