equivalence of array entries - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : MTM Package : MTM/eq

MTM[eq] - equivalence of array entries

Calling Sequence

eq(M1,M2)

Parameters

M1

-

matrix, vector, array or scalar

M2

-

matrix, vector, array or scalar

Description

• 

The eq(M1,M2) command tests if the elements of M1 and M2 are equal.  The result is an integer array with 0s where M1[i] <> M2[i], and 1s where the entries are equal.

• 

M1 and M2 must be the same size, or scalars.  If M1 is an array and M2 is a scalar, the result will be an array the same size as M1, with 0 and 1 entries indicating entries that were equal to the scalar value M2.

Examples

withMTM&colon;

M1:=Matrix1&comma;2&comma;3&comma;4&colon;

M2:=Matrix1&comma;2&comma;3&comma;5&colon;

eqM1&comma;M2

1110

(1)

See Also

comparray, MTM[ge], MTM[gt], MTM[le], MTM[lt], MTM[ne]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam