如何用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θ)')