Package: matlab.unittest.constraints
Comparator for MATLAB structure arrays
StructComparator
creates
a comparator for MATLAB® structure arrays.
StructComparator(
indicates
a comparator, compObj
)compObj
, that defines the comparator
used to compare values contained in the structure. By default, a StructComparator
supports
only empty structure arrays.
StructComparator(
provides
a comparator with additional options specified by one or more compObj
,Name,Value
)Name,Value
pair
arguments.
StructComparator(
provides
a comparator for empty structure arrays with additional options specified
by one or more Name,Value
)Name,Value
pair arguments.
|
Fields to ignore during struct comparison, specified in the
name-value pair argument, |
|
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.