www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotCosinePatternInPolarCoordinatesExample.m

    %% Plot Cosine Pattern in Polar Coordinates
% Specify a cosine antenna pattern from 0° to 360° in azimuth at 0° elevation. Then, plot the antenna pattern using
% |polarpattern|.
%%
% Create the pattern.
az = [0:360];
p = abs(cosd(az));
%%
% Plot the polar pattern of the antenna for an azimuth cut at 0° elevation.
polarpattern(p,'TitleTopTextInterpreter','tex','TitleTop','Azimuth Cut (Elevation Angle = 0^{\circ})');