ne, ~=

Determine inequality

Syntax and Description

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

Back to functions