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

    %% Azimuth Response of Partitioned ULA  
% Plot the azimuth response of a 4-element ULA partitioned into
% two 2-element ULA's. The element spacing is one-half wavelength.

% Copyright 2015 The MathWorks, Inc.


%% 
% Create the ULA, and partition it into two 2-element ULA's. 
sULA = phased.ULA('NumElements',4,'ElementSpacing',0.5);
sPA = phased.PartitionedArray('Array',sULA,...
    'SubarraySelection',[1 1 0 0;0 0 1 1]);

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