Class: matlab.unittest.constraints.Constraint
Package: matlab.unittest.constraints

Determine whether value satisfies constraint


TF = satisfiedBy(constObj,actVal)


TF = satisfiedBy(constObj,actVal) determines whether a value, actVal, satisfies a constraint, constObj. The satisfiedBy method is used to determine qualification success or failure. It returns true or false (logical 0 or 1). When creating a custom constraint, a class author must place comparison logic in this method.

Since the most common usage is for the passing case, the constraint author should optimize for speed in that case. It is only in the failing case that more expensive detailed analysis is helpful.

Input Arguments


Value to evaluate against the constraint


Constraint instance