matlab.unittest.constraints.HasLength class
Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying expected length of array
Construction
HasLength(
provides
a constraint that specifies an expected length of an array. The constraint
is satisfied if the largest dimension length of the actual value array
has the same number of elements specified as by lengthVal
)lengthVal
.
Input Arguments
|
Length a value must have to satisfy the constraint. |
Properties
|
Length a value must have to satisfy the constraint. Set this
property through the constructor via the |
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
See Also
IsEmpty
| HasElementCount
| HasSize
| length