www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotPattern9ElementULAArrayExample.m
%% Plot Pattern of 9-Element ULA Antenna Array of Short Dipoles % Create an 9-element ULA of short dipole antenna elements spaced 0.2 % meters apart. Display the azimuth and elevation directivities. The % operating frequency is 500 MHz. Plot the directivities in polar % coordinates. % Copyright 2015 The MathWorks, Inc. %% % Evaluate the fields at 45 degrees azimuth and 0 degrees elevation. sSD = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[50e6,1000e6],... 'AxisDirection','Z'); sULA = phased.ULA('NumElements',9,'ElementSpacing',1.5,'Element',sSD); fc = 500e6; ang = [45;0]; resp = step(sULA,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(sULA,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(sULA,fc,[0],[-90:90],... 'Type','directivity',... 'PropagationSpeed',c)