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

    %% Plot Azimuth Response of 4-Element ULA
% Construct a 4-element ULA of isotropic elements (the default)
% and plot its azimuth response in
% polar form. By default, the azimuth cut is at 0 degrees
% elevation. Assume the operating frequency is 1 GHz and the
% wave propagation speed is the speed of light. The nominal
% element spacing is 1/2 meter which means that the array is undersampled
% at this frequency.

% Copyright 2015 The MathWorks, Inc.

ha = phased.ULA(4);
fc = 1e9;
c = physconst('LightSpeed');
plotResponse(ha,fc,c,'RespCut','Az','Format','Polar');