Generates sin or cos wave using plot functions, MATLAB Programming

Generates sin or cos wave using plot functions:

The script generates an x vector; iterating through all the values from 0 to 2*π in steps of 2*π /40 gives sufficient points to get a fine graph. It then finds the sine of each x value, and plots these points by using red o's. The command holds on freezes this in the figure window so the later plot will be superimposed. After that, it finds the cosine of each x value and plots these points by using blue +'s. The legend function generates a legend; the first string is paired with the first plot, and the next string with the next plot. Running this script generates the plot seen in the figure as shown below:

1822_Generates sin or cos wave using plot functions.png

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







Related Discussions:- Generates sin or cos wave using plot functions, Assignment Help, Ask Question on Generates sin or cos wave using plot functions, Get Answer, Expert's Help, Generates sin or cos wave using plot functions Discussions

Write discussion on Generates sin or cos wave using plot functions
Your posts are moderated
Related Questions
how can i model this eqn: solve n plot x vs v x^3-2x^2+x=v^2(.532*10^-3) by putting v=0 to 20 and find the change in x

Implement a single-layer perceptron and train it to translate the digital letters given in the file "pattern1" into the corresponding ASCII representation. Plot a training curve an


RECOGNIZER and TRANSLATOR: i want to recognized devanagari word using matlab. I have done it using template matching. but i am not get devanagari word at the output. But get speci

http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nFMQo4BP04

Function definitions: There are various ways to organize the scripts and functions, but for now every function which we write will be stored in a separate M-file, that is why

Why Function stubs are used?

Compute the result: To compute the area, the formula is required. In this situation, the area of the circle is π multiplied by the radius squared. Therefore, that means the va

Creating Matrix Variables: Creating a matrix variable is actually just a generalization of creating a row and column vector variables. That is, the values within the row are s

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