5. Control Loops for, while if

MATLAB, along with other computer programming languages and programmable calculators, offers features that allow you to control the sequencing and execution of commands by incorporating decision making facilities. The while and if commands are often used in conjunction with the relational operators.

Relational Operator Mathematical Meaning
< less than <
<= less than or equal to ≤
<= less than or equal to ≤
> greater than >
>= greater than or equal to ≥
== equal to =

~=

not equal to =