Element by element equality comparison of two data objects.
Syntax: @eeq(m1, m2)
m1: numeric or alphanumeric object
m2: numeric or alphanumeric object
Return: vector or matrix object
Returns the element by element test of equality between numeric or alphanumeric objects.
Each element of the returned object is equal to 1 or 0 depending on whether the corresponding element in m1 is equal to the corresponding element in m2.
Note m1 and m2 must be of identical dimensions.
Examples
Let X and Y be
matrices. Then
= @eeq(X, Y)
returns an
binary matrix that indicates where X and Y match (on 0 or on 1).
Cross-references
See also
@ege,
@egt,
@ele, and
@elt.
See also
@eeqna,
@eneq, and
@eneqna.