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

    %% Pattern of 11-Element UCA Antenna Array
% Create an 11-element UCA of radius 1.5 meters. Show the azimuth and
% elevation directivities.

% Copyright 2015 The MathWorks, Inc.


%%
% Evaluate the fields at 45 degrees azimuth and 0 degrees elevation.
sSD = phased.ShortDipoleAntennaElement(...
    'FrequencyRange',[50e6,1000e6],...
    'AxisDirection','Z');
sUCA = phased.UCA('NumElements',11,'Radius',1.5,'Element',sSD);
fc = 500e6;
ang = [45;0];
resp = step(sUCA,fc,ang);
disp(resp.V)

%%
% Display the azimuth directivity pattern at 500 MHz for azimuth angles
% between -180 and 180 degrees.
c = physconst('LightSpeed');
pattern(sUCA,fc,[-180:180],0,'Type','directivity','PropagationSpeed',c)

%%
% Display the elevation directivity pattern at 500 MHz for elevation angles
% between -90 and 90 degrees.
pattern(sUCA,fc,[0],[-90:90],'Type','directivity','PropagationSpeed',c)