Mathematical operation, MATLAB Programming

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

Posted Date: 10/18/2012 7:29:29 AM | Location : United States







Related Discussions:- Mathematical operation, Assignment Help, Ask Question on Mathematical operation, Get Answer, Expert's Help, Mathematical operation Discussions

Write discussion on Mathematical operation
Your posts are moderated
Related Questions
In this lab, we implement vectors, script and functions with plot. Plot function is used to plot the point into graph. These plots are handled by handle (h).  These handle is used

The Switch Statement: A switch statement can frequently used in place of a nested if-else or an if statement with numerous else if clauses. The Switch statements are used when

How to make EMG analysis by Matlab?

Hello sir, I am Bharat Prajapati.I am working on Copy-move forgery detection using 2D-DWT transform.How to code in matlab to detect copy-move forgery in the given image.Please help

The natural frequencies of a fixed-fixed uniform shaft made of homogeneous material undergoing longitudinal vibration is given by rad/s, where L is the length of the bar, G is th

256789;267825;625892;982895;598289


Create a text file with simulated data. Calculate an experimental y using the first function and some reasonable values for the parameters Add noise Save the x values and ca

a. Run the simulation you developed for 10 one-day periods. Provide a table of the Peak Power required for each day. b. Based on this information, and the fact additional capaci

how can i used loops instead of polyfit function