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

    %% Three Signals Arriving at 0.4-Wavelength-Spaced ULA
% Assume a uniform line array 10 elements, as in the previous example. But
% now the element spacing is smaller than one-half wavelength. Three plane
% waves arrive from the 0°, –25°, and 30° azimuth
% directions. Elevation angles are 0°. The noise is spatially and
% temporally white Gaussian noise. The SNR for each signal is 5 dB.
%%
% Set element spacing to 0.4 wavelengths using the
% |ElementSpacing| name-value pair. Then, find the arrival angles.
N = 10;
d = 0.4;
elementPos = (0:N-1)*d;
angles = [0 -25 30];
Nsig = 3;
R = sensorcov(elementPos,angles,db2pow(-5));
doa = rootmusicdoa(R,Nsig,'ElementSpacing',d)
%%
% The solution agrees with the known angles.