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

    %% Correlation of Noise Between Sensors
% Simulate receiving a signal at a ULA, where the noise between different sensors is correlated. 

%%
% Create a 4-element uniform linear array whose elements are spaced
% one-half wavelength apart.
pos = 0.5 * (0:3);
%%
% Define the noise covariance matrix. The value in the ( _k_,_j_) position
% in the |ncov| matrix is the covariance between the _k_ and _j_ array
% elements listed in array.
ncov = 0.1 * [1 0.1 0 0; 0.1 1 0.1 0; 0 0.1 1 0.1; 0 0 0.1 1];

%%
% Simulate 100 snapshots of the received signal at the array. Assume that
% one incoming signal originates from 60° azimuth.
ns = 100;
ang = 60;
[x,rt,r] = sensorsig(pos,ns,ang,ncov);

%%
% View the theoretical and sample covariance matrices for the received signal.
rt,r