matlab : R2018a 64bit
OS : Windows 10 x64
typesetting : Markdown
blog : my.oschina.net/zhichengjiu
gitee : gitee.com/zhichengjiu
code
clear
clc
theta=0:0.01:2*pi;
p=2*theta; % 阿基米德线
figure(1),
polar(theta,p) % 极坐标下的图
pp=3*(1+cos(theta)); % 心型线
figure(2),
polar(theta,pp) % 极坐标下的图,挺好看的