Matlab_04b
Graph exercises
This code plots a circle:
nvals = linspace(0,2*pi,100);
xvals = sin(nvals);
yvals = cos(nvals);
plot(xvals,yvals);
your first job is convince yourself that this works, and that you know how this works.
Now with just the addition of some simple arithmetic you should be able to produce an ellipse
a diagonal ellipse
and more complex figures - these are called Lissajous figures after Jules-Antoine Lissajous who studied them in 1857 (although Bowditch described them earlier).