theta = linspace(-pi, pi, 300); p = 2-4*cos(theta); polar(theta, p)
Published with MATLAB® R2017a