Determine whether real-world values of two fi objects are not equal


c = ne(a,b)
a ~= b


c = ne(a,b) is called for the syntax a ~= b when a or b is a fi object. a and b must have the same dimensions unless one is a scalar. A scalar can be compared with another object of any size.

a ~= b does an element-by-element comparison between a and b and returns a matrix of the same size with elements set to 1 where the relation is true, and 0 where the relation is false.

See Also

| | | |

Was this topic helpful?