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
This assignment is motivated by the use of flybys of planets / moons in spacecraft missions to alter a spacecraft's trajectory (flight path). Planetary flybys can be used to not on


hi, I would like to get quote for my matlab assignment help? thanks

Write a MATLAB program (using/making the necessary functions that you deem necessary) that does the two following jobs: It generates the following digital modulation schemes. In

Temperature readings were done every hour (starting at 1 P.M., but the end time could vary) and stored in a vector called readings. Write a function called halffit that receives th

1;write the matlab of LU decomposion that can do any n*n matrix by considering scaling and pivoting?

Why Function stubs are used?

IIR filter using Bilinear trasformation