MATLAB Function Reference Previous page   Next Page
polar

Plot polar coordinates

Syntax

Description

The polar function accepts polar coordinates, plots them in a Cartesian plane, and draws the polar grid on the plane.

polar(theta,rho) creates a polar coordinate plot of the angle theta versus the radius rho. theta is the angle from the x-axis to the radius vector specified in radians; rho is the length of the radius vector specified in dataspace units.

polar(theta,rho,LineSpec) LineSpec specifies the line type, plot symbol, and color for the lines drawn in the polar plot.

polar(axes_handle,...) plots into the axes with handle axes_handle instead of the current axes (gca).

h = polar(...) returns the handle of a line object in h.

Examples

Create a simple polar plot using a dashed red line:

See Also

cart2pol, compass, LineSpec, plot, pol2cart, rose


Previous page  pol2cart poly Next page

© 1994-2005 The MathWorks, Inc.