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

    %% Response of Antenna ULA
% Create a 4-element ULA of isotropic antenna elements and find the
% response of each element at boresight. Plot the array response at 1
% GHz for azimuth angles between -180 and 180 degrees.

% Copyright 2015 The MathWorks, Inc.

ha = phased.ULA('NumElements',4);
fc = 1e9;
ang = [0;0];
resp = step(ha,fc,ang);
c = physconst('LightSpeed');
pattern(ha,fc,[-180:180],0,...
    'PropagationSpeed',c,...
    'CoordinateSystem','rectangular')