i have 2 uncorrlated sources in 62 and 67 degree . addative withe gussian noise snr 10 db i want to calcaulate covariance matrix of X. number of element 8 number of snapshot 200 why my code is not working?
조회 수: 1 (최근 30일)
이전 댓글 표시
N = 8;
fc = 3e8; % Operating frequency
fs = 8192; c = 3e8; % Sampling frequency
lambda = c/fc; % Wavelength
ha = phased.ULA('NumElements',N,'ElementSpacing',lambda/2);
ang1 =62; ang2 =67; % Direction of the signals
angs = [ang1 ang2];
Nsamp = 200; % Number of snapshots
noisePwr = 0.01; % Noise power
pos = getElementPosition(ha)/lambda; % Element position in wavelengths
x = sensorsig(pos,Nsamp,angs,noisePwr);
y = awgn(x,10) ;
Y=transpose(y) %transpose
r=zeros(8)
for q =1:1:200;
p=Y(:,q)*Y(:,q)';
r=r+p;
end
r=1/200*r;
댓글 수: 1
Geoff Hayes
2015년 6월 27일
farid - please clarify what you mean by why my code is not working. Are you observing an error, and if so, what is it? Or, is your code just producing an unexpected or incorrect result?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Beamforming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!