TF = matlab.mixin.isScalarClass(A) returns
logical 1 (true) if A is a function
handle or an instance of a class that inherits from matlab.mixin.Scalar.
Otherwise, it returns logical 0 (false).
The function accepts arrays of any size, but it returns false if
the input is not scalar. For example, the function returns false for a cell array of
function handles, even though the function handles themselves are scalar.