function mustBeNonmissing(A)
%MUSTBENONMISSING Validate that value is not missing
%   MUSTBENONMISSING(A) throws an error if A contains missing data.
%   MATLAB calls ismissing to determine if A contains missing data.
%
%   Class support:
%   All numeric classes, string
%   MATLAB classes that define these methods:
%       ismissing
%
%   See also: ISMISSING.
        
%   Copyright 2020 The MathWorks, Inc.  
    if any(ismissing(A),'all')
        throwAsCaller(MException(message('MATLAB:validators:mustBeNonmissing')));
    end
end

% LocalWords:  ismissing validators
