next up previous contents
Next: Solving nonlinear problems in Up: Advanced Graphics Previous: 3D plots

Parametric plots

It is easy to graph a curve (f(t),g(t)) in 2-space. For example (see Figure 11):

>> t = (0:2*pi/100:2*pi)';
>> plot(cos(t),sin(t))
>> axis('square')
(note the use of the axis('square') command to make the circle appear round instead of elliptic). See also the commands comet, comet3.

   figure294
Figure 11: A parametric plot in 2D



Mark S. Gockenbach
Wed Sep 8 10:44:13 EDT 1999