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

    %% Plot Elevation Pattern of UCA
% Create a 6-element UCA of short-dipole antenna elements. Design the array
% to have a radius of 0.5 meters. Plot an elevation cut of directivity at 0 and
% 90 degrees azimuth. Assume the operating frequency is 500 MHz.

% Copyright 2015 The MathWorks, Inc.

fc = 500e6;
sCDant = phased.ShortDipoleAntennaElement('FrequencyRange',[100,900]*1e6);
sUCA = phased.UCA('NumElements',6,'Radius',0.5,'Element',sCDant);
patternElevation(sUCA,fc,[0 90])
%% 
% You can plot a smaller range of elevation angles by setting the |Elevation|
% property.
patternElevation(sUCA,fc,[0 45],'Elevation',[0:90])