Relational Operations - MATLAB & Simulink (original) (raw)
Main Content
Value comparisons
Functions
== | Determine equality |
---|---|
isapprox | Determine approximate equality (Since R2024b) |
>= | Determine greater than or equal to |
> | Determine greater than |
<= | Determine less than or equal to |
< | Determine less than |
~= | Determine inequality |
isequal | Determine array equality |
isequaln | Determine array equality, treating NaN values as equal |
Topics
- Array Comparison with Relational Operators
Use relational operators like “less than”, “greater than”, and “not equal to” to compare arrays. The result is a logical array indicating the locations where the relation is true. - Operator Precedence
Precedence rules determine the order in which MATLAB® evaluates an expression.