Skip to content

ne

Element-wise inequality test (function form of ~=).

C = ne(A, B)

Returns ~eq(A, B) — the elementwise logical complement of eq.

ne([1 2 3], [1 0 3]) % [0 1 0]
  • eq — Element-wise equality test (function form of ==).
  • isequal — Test whether two or more inputs are equal in shape and value.