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

    %% Azimuth Directivity of Short-Dipole Antenna Element at Two Elevations
% Specify a short-dipole antenna element having a direction along the
% y-axis. Then, plot an azimuth cut of the directivity at 0 and 30 degrees
% elevation. Assume the operating frequency is 500 MHz.
%%
% Create the antenna element.

% Copyright 2015 The MathWorks, Inc.

fc = 500e6;
sSD = phased.ShortDipoleAntennaElement('FrequencyRange',[100,900]*1e6,...
    'AxisDirection','y');
patternAzimuth(sSD,fc,[0 30])
%%
% Plot a reduced range of azimuth angles using the 
% |Azimuth| parameter. Notice the change in scale.
patternAzimuth(sSD,fc,[0 30],'Azimuth',[-20:20])