Relational Expressions:
The Conditions in if statements use expressions which are theoretically, or logically, either true or false. These expressions are termed as relational expressions, or at times Boolean or logical expressions. Such expressions can use both relational operators, that associate two expressions of compatible types, and logical operators, that operate on the logical operands.
The relational operators in MATLAB are as shown:
All the concepts must be familiar, though the operators used might be different from those used in the other programming languages, or in the mathematics classes.
In particular, it is very significant to note that the operator for equality is two consecutive equal signs, not a single equal sign.