资源简介
matlab仿真利用简单的music算法对到达天线阵列的信号进行到达角估计。
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% FUNCTION: music.m
%
% AUTHOR: Steve Kogon
%
% DATE: January 18 1999
%
% DEscriptION: This file forms an estimate of the frequency spectrum using
% MUSIC algorithm (spectral version) (Schmidt 1986).
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%-----------------------------------------------------------
% Copyright 2000 by Dimitris G. Manolakis Vinay K. Ingle
% and Stephen M. Kogon. For use with the book
% “Statistical and Adaptive Signal Processing“
% McGraw-Hill Higher Education.
%-----------------------------------------------------------
function [festRbar] = music(xPMNfft)
% x = signal
% P = number of complex exponentials
% M = time-window length
% Nfft = number of FFT frequencies
% Generate data matrix
N = length(x) - M + 1;
X = zeros(NM);
for n = 1:M
X(:n) = x((1:N)+ (M-n));
end
R = (1/N)*X‘*X; % estimate correlation matrix
% Compute eigendecomposition and order by descending eigenvalues
[Q0D] = eig(R);
[lambdaindex] = sort(abs(diag(D)));
lambda = lambda(M:-1:1);
Q=Q0(:index(M:-1:1));
% Compute pseudo-spectrum
f = (-Nfft/2:(Nfft/2-1))/Nfft; % FFT frequencies
Qbar = zeros(Nfft1);
for n = 1:(M-P)
Qbar = Qbar + abs(fftshift(fft(Q(:M-(n-1))Nfft))).^2;
end
Rbar = 1./Qbar;
% Find local maxima (values of Rbar that are larger than their neighbors)
z1 = Rbar(2:(Nfft-1)) - Rbar(1:(Nfft-2));
z2 = Rbar(2:(Nfft-1)) - Rbar(3:Nfft);
peak_index = find((z1 > 0) & (z2 > 0)) + 1;
if Rbar(1) > Rbar(2)
peak_index = [1
peak_index];
end
if Rbar(Nfft) > Rbar(Nfft-1)
peak_index = [peak_index
Nfft];
end
Npeaks = length(peak_index);
f_peaks = f(peak_index);
% Determine the P largest peaks (taken from local maxima)
[dummyfest_index] = sort(Rbar(peak_index));
fest = f_peaks(fest_index(Npeaks:-1:(Npeaks-P+1))).‘;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2024 2011-09-11 15:28 music.m
----------- --------- ---------- ----- ----
2024 1
- 上一篇:一个经典的MATLABgui界面的
- 下一篇:经典DOA估计GSC旁瓣相消算法算法
相关资源
- 经典DOA估计GSC旁瓣相消算法算法
- music算法的matlab程序
- 8阵元均匀圆阵MUSIC DOA算法的matlab程序
- 基于MUSIC的均匀矩形阵DOT估计matlab仿真
- CRBonDOAforsingletarget.m
- 求根MUSIC算法
- matlab 编写的MUSIC,MVDR算法仿真
- DOA 估计 music算法matlab
- TDOA仿真程序
- 基于均匀圆阵的MUSIC算法
- 四阶累积量的MUSIC算法的MATLAB程序
- doa算法的matlab实现
- MUSIC和ESPRIT程序代码
- MIMO_DOAMIMO-雷达DOA估计中克拉美罗界
- 基于TDOA定位的taylor级数展开法
- MVDRCapon波束形成DO估计.zip
- 基于矢量水听器阵列的MUSIC算法.m
- 二维DOA估计中的ROOTMUSIC算法
- 蜂窝网络TDOA定位方法的Fang算法研究及
- music算法频谱估计
- 宽带信号DOA估计
- Capon算法计算DOA
- 空间平滑MUSIC算法估计相干源DOA
- 圆阵MUSIC算法
- 阵列信号处理的理论和应用 matlab程序
- 宽带信号DOA估计SST算法
- 宽带信号DOA估计RSS算法
- 宽带信号DOA估计算法
- TDOA常见算法的MATLAB源代码
- PAST+MUSIC算法进行离散时间信号频率估
评论
共有 条评论