greater than or equal too in matlab

In Matlab, the greater than or equal to comparison operator is >=. Here is an example code snippet that demonstrates its use:

main.m
a = 5;
b = 10;
if a >= b
    disp('a is greater than or equal to b');
else
    disp('a is less than b');
end
109 chars
8 lines

In this example, the program checks whether a is greater than or equal to b. Since this is not the case (5 is less than 10), the output of the program is 'a is less than b'.

gistlibby LogSnag