Mathematical operation:
For numerical operands, the use of such operators is clear-cut. For illustration, 3 < 5 means '3less than 5,' that is conceptually a true expression. Though, in MATLAB, as in many programming languages, the logical true is exhibited by the integer 1, and the logical false is presented by the integer 0. Therefore, the expression 3 < 5 really has the value 1 in MATLAB. Showing the result of expressions like this in the Command Window elaborates the values of the expressions.
>> 3 < 5
ans =
1
>> 9 < 2
0
Though, in the Workspace Window, the value revealed for the result of these expressions would be true or false. The kind of the result is logical.
The Mathematical operations could be executed on the resulting 1 or 0.
>> 5 < 7
>> ans + 3
4