eq

equality, == operator.

Syntax

  • C = eq(A, B)

  • C = (A == B)

Input argument

  • A - a variable

  • B - a variable

Output argument

  • C - result of A == B

Description

C = eq(A, B) returns a logical array with elements set to logical true where arrays A and B are equals.

eq compares both real and imaginary parts of numeric arrays.

Examples

eye(2,2) == ones(2, 2)
0 == i
'Nelson' == 'Noslen'
"Nelson" == "Noslen"
'Nelson' == 'l'
eq(0.8-0.6-0.2, 0)

See also

ne, lt, le, gt, ge.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated