MATLAB Programming/Polar Plot

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Introduction[edit | edit source]

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

Usage[edit | edit source]

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