[LEFT][COLOR=#000000][FONT=Tahoma][FONT=monospace]ISEQUAL True [COLOR=#0000FF]if[/COLOR] arrays are numerically equal.
ISEQUAL[COLOR=#008800]([/COLOR]A,B[COLOR=#008800])[/COLOR] returns [COLOR=#0000FF]logical[/COLOR] [COLOR=#3333FF]1[/COLOR] [COLOR=#008800]([/COLOR]TRUE[COLOR=#008800])[/COLOR] [COLOR=#0000FF]if[/COLOR] arrays A and B are the same
[COLOR=#0000FF]size[/COLOR] and contain the same values, and [COLOR=#0000FF]logical[/COLOR] [COLOR=#3333FF]0[/COLOR] [COLOR=#008800]([/COLOR]FALSE[COLOR=#008800])[/COLOR] [COLOR=#0000FF]otherwise[/COLOR].
[COLOR=#0000FF]If[/COLOR] A [COLOR=#0000FF]is[/COLOR] defined and you [COLOR=#0000FF]set[/COLOR] B = A, ISEQUAL[COLOR=#008800]([/COLOR]A,B[COLOR=#008800])[/COLOR] [COLOR=#0000FF]is[/COLOR] not necessarily
true. [COLOR=#0000FF]If[/COLOR] A or B contains a [COLOR=#0000FF]NaN[/COLOR] element, ISEQUAL returns false because
NaNs are not equal to each other by definition.
ISEQUAL[COLOR=#008800]([/COLOR]A,B,C,[COLOR=#008800]...[/COLOR][COLOR=#008800])[/COLOR] returns [COLOR=#0000FF]logical[/COLOR] [COLOR=#3333FF]1[/COLOR] [COLOR=#0000FF]if[/COLOR] [COLOR=#0000FF]all[/COLOR] the [COLOR=#0000FF]input[/COLOR] arguments are
numerically equal, and [COLOR=#0000FF]logical[/COLOR] [COLOR=#3333FF]0[/COLOR] [COLOR=#0000FF]otherwise[/COLOR].
When comparing numeric values, ISEQUAL does not consider the [COLOR=#0000FF]class[/COLOR]
of the values in determining whether they are equal. In other words,
[COLOR=#0000FF]INT8[/COLOR][COLOR=#008800]([/COLOR][COLOR=#3333FF]5[/COLOR][COLOR=#008800])[/COLOR] and [COLOR=#0000FF]SINGLE[/COLOR][COLOR=#008800]([/COLOR][COLOR=#3333FF]5[/COLOR][COLOR=#008800])[/COLOR] are considered equal. This [COLOR=#0000FF]is[/COLOR] also true when
comparing numeric values with certain nonnumeric values. Numeric [COLOR=#3333FF]1[/COLOR]
[COLOR=#0000FF]is[/COLOR] equal to [COLOR=#0000FF]logical[/COLOR] [COLOR=#3333FF]1[/COLOR]. The number [COLOR=#3333FF]65[/COLOR] [COLOR=#0000FF]is[/COLOR] equal to the character [COLOR=#A020F0]'A'[/COLOR].
When comparing handle objects, use EQ or the == operator to test
whether objects are the same handle. Use ISEQUAL to test [COLOR=#0000FF]if[/COLOR] objects
[/FONT][/FONT][/COLOR]
[COLOR=#000000][FONT=Tahoma][FONT=monospace] have equal property values, even [COLOR=#0000FF]if[/COLOR] those objects are different
handles.
ISEQUAL recursively compares the contents of [COLOR=#0000FF]cell[/COLOR] arrays and
structures. [COLOR=#0000FF]If[/COLOR] [COLOR=#0000FF]all[/COLOR] the elements of a [COLOR=#0000FF]cell[/COLOR] array or structure are
numerically equal, ISEQUAL returns [COLOR=#3333FF]1[/COLOR].
When comparing structures, the order in [COLOR=#0000FF]which[/COLOR] the fields of the
structures were created [COLOR=#0000FF]is[/COLOR] not important. As long as the structures
contain the same fields, with corresponding fields [COLOR=#0000FF]set[/COLOR] to equal values,
isequal considers the structures to be equal.
See also isequalwithequalnans, eq.
Overloaded methods:
matlab.desktop.editor.Document/isequal
MException/isequal
timer/isequal
serial/isequal
instrument/isequal
daqdevice/isequal
daqchild/isequal
codistributed/isequal
fints/isequal
imaqdevice/isequal
imaqchild/isequal
iviconfigurationstore/isequal
icgroup/isequal
atom/isequal
categorical/isequal
laurpoly/isequal
laurmat/isequal
Reference page in [COLOR=#0000FF]Help[/COLOR] browser
[COLOR=#0000FF]doc[/COLOR] isequal[/FONT]
[/FONT][/COLOR][/LEFT]