Package: matlab.unittest.constraints
Comparator for cell arrays
The CellComparator
compares cell arrays.
CellComparator
creates
a comparator for cell arrays.
CellComparator(
indicates
a comparator, compObj
)compObj
, that defines the comparator
used to compare values contained in the cell array. By default, a
cell comparator supports only empty cell arrays.
CellComparator(
provides
a comparator with additional options specified by one or more compObj
,Name,Value
)Name,Value
pair
arguments.
CellComparator(
provides
a comparator for empty cell arrays with additional options specified
by one or more Name,Value
)Name,Value
pair arguments.
|
Comparator object |
Specify optional comma-separated pairs of Name,Value
arguments.
Name
is the argument
name and Value
is the corresponding
value. Name
must appear
inside single quotes (' '
).
You can specify several name and value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
Indicator of whether comparator operates recursively, specified
as When the value is comp1 = CellComparator(StringComparator) comp2 = CellComparator(StringComparator,'Recursively', true) comp1 and comp2 support
cell arrays of strings and character arrays. However, only comp2 supports
cell arrays that recursively contain either cell arrays or strings
as their elements.
Default: |
|
Indicator of whether comparator operates recursively, specified
in the name-value pair argument, |
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB® documentation.