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

    %% Restricted Elevation Directivity Pattern of Isotropic Antenna Element
% Plot an elevation cut of directivity of an isotropic antenna element at
% 45 degrees azimuth. Assume the operating frequency is 500 MHz.

% Copyright 2015 The MathWorks, Inc.


%%
% Create the antenna element.
fc = 500e6;
sIso = phased.IsotropicAntennaElement('FrequencyRange',[100,900]*1e6);
patternElevation(sIso,fc,45)
%%
% Plot a reduced range of elevation angles using the |Elevation|
% parameter.
patternElevation(sIso,fc,45,'Elevation',[-20:20])