mathematical operationfor numerical operands the


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

ans =

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 =

1

>> ans + 3

ans =

4

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: mathematical operationfor numerical operands the
Reference No:- TGS0174793

Expected delivery within 24 Hours