Main Content
matlab.unittest.constraints.HasNaN Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if array has NaN
values
Description
The matlab.unittest.constraints.HasNaN
class provides a constraint to test
if an array has NaN
values.
Creation
Description
c = matlab.unittest.constraints.HasNaN
creates a
constraint to test if an array has NaN
values. The constraint is
satisfied by a numeric array that has at least one NaN
value.
Examples
Version History
Introduced in R2013a