There are several comparison methods available for comparing two variables in Matlab. Here are some examples:
== operator checks if two variables have the same value.main.m100 chars9 lines
~= operator checks if two variables have different values.main.m100 chars9 lines
> operator checks if one variable is greater than another.main.m103 chars9 lines
< operator checks if one variable is less than another.main.m97 chars9 lines
>= operator checks if one variable is greater than or equal to another.main.m109 chars9 lines
<= operator checks if one variable is less than or equal to another.main.m109 chars9 lines
gistlibby LogSnag