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

    %% Azimuth Response of Array with Subarrays
% Plot the azimuth response of a 4-element ULA composed of two 2-element
% ULAs. By default, the antenna elements are isotropic.

% Copyright 2015 The MathWorks, Inc.

sArray = phased.ULA('NumElements',2,'ElementSpacing',0.5);
sRSA = phased.ReplicatedSubarray('Subarray',sArray,...
   'Layout','Rectangular','GridSize',[1 2],...
   'GridSpacing','Auto');

%%
% Plot the azimuth response of the array. Assume the operating frequency is
% 1 GHz and the wave propagation speed is the speed of light.
fc = 1.0e9;
pattern(sRSA,fc,[-180:180],0,...
    'PropagationSpeed',physconst('LightSpeed'),...
    'Type','powerdb',...
    'Normalize',true,...
    'CoordinateSystem','polar')