function tf = ismatrix( obj )
%ISMATRIX True if input is a distributed matrix.
%   TF = ISMATRIX(M)
%   
%   Example:
%       N = 1000;
%       M = distributed.zeros(N);
%       tf = ismatrix(M)
%   
%   returns tf = true.
%   
%   See also ISMATRIX, DISTRIBUTED, DISTRIBUTED/ZEROS.


%   Copyright 2016 The MathWorks, Inc.

tf = obj.ndims < 3;
end