function mustBeNonsparse(A)
%MUSTBENONSPARSE Validate that value is nonsparse
%   MUSTBENONSPARSE(A) throws an error if A is sparse.
%   MATLAB calls issparse to determine if A is sparse.
%
%   Class support:
%   All numeric classes, logical
%   MATLAB classes that define an issparse method.
%
%   See also: MUSTBENUMERICORLOGICAL, MUSTBEREAL.
        
%   Copyright 2016-2020 The MathWorks, Inc.

    if issparse(A)
        throwAsCaller(createValidatorException('MATLAB:validators:mustBeNonsparse'));
    end
end
