如何用matlab做出rho^2=a^2*cos(2*theta)的图像

如何用matlab做出rho^2=a^2*cos(2*theta)的图像

用polar()函数可以绘出双钮线。

a=10;theta=0:0.01:2*pi;

rho=sqrt(a^2.*cos(2*theta));

 polar(theta,rho)

 title('ρ^2=a^2cos(2θ)')

温馨提示:答案为网友推荐,仅供参考