www.gusucode.com > phased 案例源码 matlab代码程序 > phased/AddLegendLabelToPolarPlotExample.m
%% Add Legend Label to Polar Plot % Create a polar plot of cosine powers rotated in 30° increments. % Generate a legend label for this plot. az = [0:359]'; a1 = abs(cosd(az).^5); a2 = abs(cosd(az - 30).^5); a3 = abs(cosd(az - 60).^5); a4 = abs(cosd(az - 90).^5); P = polarpattern([a1,a2,a3,a4],'Style','filled'); createLabels(P,'az = %d#deg',0:30:90)