polar可用于描绘极坐标图像。
最简单而经常使用的命令格式:POLAR(THETA, RHO)
当中,THETA是用弧度制表示的角度,RHO是相应的半径。
例:
a=-2*pi:.001:2*pi; %设定角度 b=(1-sin(a)); %设定相应角度的半径 polar(a, b,'r') %画图
得到
这也是传说中笛卡尔最后一封情书中蕴含的秘密
借这个曲线献给爱七❤