eq, ==

Determine equality

Syntax and Description

A == B returns a logical array with elements set to logical 1 (true) where arrays A and B are equal; otherwise, the element is logical 0 (false). The test compares both real and imaginary parts of numeric arrays. eq returns logical 0 (false) where A or B have NaN or undefined categorical elements.
eq(A,B) is an alternative way to execute A == B, but is rarely used.

Back to functions