MATLAB: How to plot polar plot from -pi to pi instead of 0 to 2*pi

antennaMATLAB

I have already tried thetalim([-180 180]) but this command shows error in function file and not even show the half polar plot.

Best Answer

What error do you get?
I tried the below and I don't get any error.
theta = linspace(-pi,pi,25);
rho = 2*theta;
p = polarplot(theta,rho);
thetalim([-180 180])
Related Question