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

    %% Estimate the Signal Subspace Dimensions for Two Arriving Signals
% Construct a data snapshot of two plane waves arriving at a
% half-wavelength-spaced uniform line array having 10 elements. The plane
% waves arrive from 0° and –25° azimuth, both with
% elevation angles of 0°. Assume the signals arrive in the presence of
% additive noise that is both temporally and spatially Gaussian white.
% For each signal, the SNR is 5 dB. Take 300 samples to build a
% 300-by-10 data snapshot. Then, solve for the number of signals using
% |mdltest|.
N = 10;
d = 0.5;
elementPos = (0:N-1)*d;
angles = [0 -25];
x = sensorsig(elementPos,300,angles,db2pow(-5));
Nsig = mdltest(x)
%%
% The result shows that the number of signals is two, as expected.