eq
Test DataMatrix objects for equality
Syntax
T
= eq(DMObj1
, DMObj2
)
T
= DMObj1
== DMObj2
T
= eq(DMObj1
, B
)
T
= DMObj1
== B
T
= eq(B
, DMObj1
)
T
= B
== DMObj1
Input Arguments
DMObj1 , DMObj2 | DataMatrix objects, such as created by DataMatrix (object
constructor). |
B | MATLAB® numeric or logical array. |
Output Arguments
T | Logical matrix of the same size as DMObj1 and DMObj2 or DMObj1 and B .
It contains logical 1 (true) where elements in
the first input are equal to the corresponding element in the second
input, and logical 0 (false) when they are not
equal. |
Description
or
the equivalent T
= eq(DMObj1
, DMObj2
)
compares
each element in DataMatrix object T
= DMObj1
== DMObj2
DMObj1
to
the corresponding element in DataMatrix object DMObj2
,
and returns T
, a logical matrix of the
same size as DMObj1
and DMObj2
,
containing logical 1
(true) where elements in DMObj1
are
equal to the corresponding element in DMObj2
,
and logical 0
(false) when they are not equal. DMObj1
and DMObj2
must
have the same size (number of rows and columns), unless one is a scalar
(1-by-1 DataMatrix object). DMObj1
and DMObj2
can
have different Name
properties.
or
the equivalent T
= eq(DMObj1
, B
)
compares
each element in DataMatrix object T
= DMObj1
== B
DMObj1
to
the corresponding element in B
, a numeric
or logical array, and returns T
, a logical
matrix of the same size as DMObj1
and B
,
containing logical 1
(true) where elements in DMObj1
are
equal to the corresponding element in B
,
and logical 0
(false) when they are not equal. DMObj1
and B
must
have the same size (number of rows and columns), unless one is a scalar.
or
the equivalent T
= eq(B
, DMObj1
)
compares
each element in T
= B
== DMObj1
B
, a numeric or logical
array, to the corresponding element in DataMatrix object DMObj1
,
and returns T
, a logical matrix of the
same size as B
and DMObj1
,
containing logical 1
(true) where elements in B
are
equal to the corresponding element in DMObj1
,
and logical 0
(false) when they are not equal. B
and DMObj1
must
have the same size (number of rows and columns), unless one is a scalar.
MATLAB calls
for
the syntax T
= eq(X
, Y
)
when T
= X
== Y
X
or Y
is
a DataMatrix object.
Version History
Introduced in R2008b
See Also
DataMatrix
| ne