📄 uladata.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -