Skip to Main Content Skip to Search
Product Documentation

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

Syntax

c = eq(a,b)
a == b

Description

c = eq(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

ge | gt | isequal | le | lt | ne

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS