# ne

Element-wise comparison of arrays

### A ~= B

• A and B should have the same sizes.
• An element of the output is assigned logical 1 if the corresponding element of A is not equal to the corresponding element of B, logical 0 if otherwise.
• If one of the arguments is scalar, this function compares the scalar with each element of the other argument.
• It gives the same result as A ~= B and A != B.