This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Relational Operations

Value comparisons


eq Determine equality
ge Determine greater than or equal to
gt Determine greater than
le Determine less than or equal to
lt Determine less than
ne Determine inequality
isequal Determine array equality
isequaln Determine array equality, treating NaN values as equal


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.

Was this topic helpful?