Version:

Determines whether corresponding elements of two arrays are not equal. ne(a,b) is equivalent to a~=b.

Syntax

c = ne(a, b)

a

Scalar or array of any dimension.

b

Scalar or array of any dimension. b is the same size as a unless a or b is a scalar.

c

Array of Boolean values. An element in c is 1 if corresponding elements of a and b are not equal. Otherwise, the element is 0. c is an array of the same size as the larger of a and b.