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

    %% Elevation Directivity of Short-Dipole Antenna Element at Two Azimuths
% Specify a short-dipole antenna element having a direction along the
% y-axis. Then, plot an elevation cut of the directivity at 0 and 45 degrees
% azimuth. 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','z');
patternElevation(sSD,fc,[0 30])
%%
% The plots for the two azimuth angles coincide.
%%
% Plot a reduced range of elevaton angles using the 
% |Elevation| parameter. Notice the change in scale.
patternElevation(sSD,fc,[0 45],'Elevation',[-20:20])