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

    %% Polar Pattern Display with Title for Short-Dipole Antenna
% Specify a short-dipole antenna with the dipole oriented along the
% _z_-axis and operating at 250 MHz. Then, plot the antenna pattern using
% |polarpattern| and specifying a title.
%%
% Create the short-dipole antenna element System object(TM).
antenna = phased.ShortDipoleAntennaElement('FrequencyRange',[100e6,600e6],...
    'AxisDirection','Z');
fc = 250.0e6;
%%
% Plot the polar pattern of the antenna for an elevation cut at 0° azimuth.
v = pattern(antenna,fc,0,-90:90);
polarpattern([-90:90],v,'TitleTopTextInterpreter','tex',...
    'TitleTop','Elevation Cut (Azimuth Angle = 0^{\circ})');