UP | HOME

Exercise 19

Line Plot

Let x be a vector [0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9] and set y to be equal to sin(2*pi*x).

Generate a line plot that looks like this:

e19plot1.jpg

Smoother Line

Redefine x and y to make the curve smoother:

e19plot2.jpg

Change line colour

Plot it again but make the line blue, and thick:

e19plot3.jpg

solutions


Paul Gribble | fall 2014
This work is licensed under a Creative Commons Attribution 4.0 International License
Creative Commons License