% Plotting parametrically close all; clear all; t = linspace(0,3*pi,100); % 50 equally spaced points between 0 and pi x = t.*cos(t); % Again, the .* means multiply element by element y = t.*sin(t); % rather than matrix or vector multiplication plot(x,y) axis equal % Make the scaling the same on both axesNote that no special MATLAB command was needed to make the parametric plot--the data was merely defined differently from a ``normal'' plot.

Gus Hart 2005-01-28