uladata.m
来自「谱估计及阵列信号处理算法仿真库」· M 代码 · 共 29 行
M
29 行
function Y=uladata(theta,P,N,sig2,m,d)%% Generates N snapshots of ULA sensor data%% Y=uladata(theta,P,N,sig2,m,d);%% theta <- arrival angles of the m sources in degrees% P <- The covariance matrix of the source signals% N <- number of snapshots to generate% sig2 <- noise variance% m <- number of sensors% d <- sensor spacing in wavelengths % Y -> m x N data matrix Y = [y(1),...,y(N)]% Copyright 1996 by R. Moses% generate the A matrixA=exp(-2*pi*j*d*[0:m-1].'*sin([theta(:).']*pi/180));% generate the source signalsn=max(size(P));s=(sqrtm(P)')*randn(n,N); % s(t)% generate the noise componente=sqrt(sig2/2)*(randn(m,N)+j*randn(m,N));% generate the ULA dataY=A*s+e;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?