Main Content

Relational Operations

Value comparisons

Relational operators compare the elements in two arrays and return logical true or false values to indicate where the relation holds. For more information, seeArray Comparison with Relational Operators.

Funzioni

== Determine equality
>= 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

Argomenti

  • Array Comparison with Relational Operators

    使用关系运算符如“小于”、“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.

Informazioni complementari