MATLAB Examples

This is an example of how to create a polar plot from a function in MATLAB®.

Read about the ezpolar function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Create the plot using the function r(t) = 1 + cos(t)*sin(t)^2
figure
ezpolar('1+cos(t)*sin(t)^2')