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

    %% Plane Waves Received at Array Containing Subarrays
% Simulate the received signal at a 16-element ULA partitioned into four
% 4-element ULAs.
%%
% Create a 16-element ULA, and partition it into 4-element ULAs.
ula = phased.ULA('NumElements',16);
array = phased.PartitionedArray('Array',ula,...
   'SubarraySelection',....
   [1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0;...
    0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0;...
    0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0;...
    0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1]);
%%
% Simulate received signals from 10° and 30° azimuth. Both
% signals have an elevation angle of 0°. Assume the propagation
% speed is the speed of light and the carrier frequency of the signal is
% 100 MHz.
sig = collectPlaneWave(array,randn(4,2),[10 30],1.0e8,physconst('LightSpeed'))