MATLAB Programming/Polar Plot

From Wikibooks, open books for an open world
< MATLAB Programming
Jump to: navigation, search

Introduction[edit]

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

Usage[edit]

Here's how a plot can be created.

>>t = 0:.01:2*pi;
>>polar(t,sin(2*t).*cos(2*t),'--r')
>> grid on                                         % Turn on the grid