MATLAB: Assistance plotting radiation pattern

polar

I am trying to make a polar plot using the following code yet it doesn't come out as smooth as desired. I'd appreciate some further guidance:
P = [-65,-67,-66,-68.2,-67,-67,-66,-65,-63,-62,-52,-42,-41.5,-47.39,-60.5,-61.7,-63.35,-67,-65.2,-66.1,-71,-67,-67,-68,-65,-65];
A = [-180,-165,-150,-135,-120,-105,-90,-75,-60,-45,-30,-15,0,15,30,39,45,60,75,90,105,120,135,150,165,180];
G = P+10;
polarplot(A*pi/180,abs(G));

Best Answer

I’m not certain what result you want.
One option is to interpolate your data:
Ai = linspace(min(A), max(A), 360);
Gi = interp1(A, G, Ai, 'spline');
figure
polarplot(Ai*pi/180,abs(Gi));
You will need to experiment with that to get the appropriate result.