Class: matlab.unittest.constraints.Tolerance
Package: matlab.unittest.constraints
Determine whether two values are within tolerance
TF = satisfiedBy(tolObj,actVal,expVal)
TF = satisfiedBy(
determines
whether two values, tolObj
,actVal
,expVal
)actVal
and expVal
,
are within the tolerance defined by tolObj
. The satisfiedBy
method
is used to determine whether the tolerance is met. It returns true
or false
(logical
0
or 1
).
When creating a custom tolerance, a class author uses this method
to contain the tolerance definition.
|
Value to determine if is within tolerance of |
|
|
|
Expected value |