⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 esprit_doa.m

📁 已知:信号中心波长为2,天线阵元的间距为1米,快拍数为2000
💻 M
字号:
function doa=esprit_doa(Y,n,d)
%
% The ESPRIT method for DOA estimates 
%
% call doa=esprit_doa(Y,n,d)
%
%      Y    <- the ULA data
%      n    <- the number of sources
%      d    <- sensor spacing in wavelengths
%      doa  -> the vector of DOA estimates

%copyright by kily 2008

[m,N]=size(Y);

% compute the sample covariance matrix
R=Y*Y'/N;

% do the eigendecomposition; use svd because it sorts eigenvalues
[U,D,V]=svd(R);

S=U(:,1:n);

phi = S(1:m-1,:)\S(2:m,:);
w=angle(eig(phi));
doa=asin(w/d/pi/2)*180/pi;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -