Main Content
matlab.unittest.constraints.IsReal Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if array elements are real values
Description
The matlab.unittest.constraints.IsReal
class provides a constraint to test
if elements of an array are real values.
Creation
Description
c = matlab.unittest.constraints.IsReal
creates a
constraint to test if all elements of an array are real values. The constraint is
satisfied by a numeric array that does not use complex storage.
Examples
Version History
Introduced in R2013a