Main Content
matlab.unittest.constraints.HasMissing Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Description
The matlab.unittest.constraints.HasMissing
class provides a constraint to
test if an array has any missing elements. The constraint uses the ismissing
function to identify missing values.
The form that missing values take in MATLAB® depends on the data type. For more information, see Missing Data in MATLAB.
Creation
Description
c = matlab.unittest.constraints.HasMissing
creates a constraint to test if an array has any missing elements. The constraint is
satisfied by an array that has at least one missing element.
Examples
Version History
Introduced in R2023b