bartlettse.m

来自「现代信号谱估计算法的matlab代码 调用函数代码」· M 代码 · 共 24 行

M
24
字号
function phi=bartlettse(y,M,L)
%
% The Bartlett method of spectra estimation.
%
% phi=bartlettse(y,M,L);
%
%      y -> the data vector
%      M -> the length of subsequences of y
%      L -> the number of psd samples
%
%    phi <- spectral estimates at L frequencies w=0, 2*pi/L, ..., 2*pi(L-1)/L

% Copyright 1996 by R. Moses


% check the lenth M
N=length(y);
if (M>N)
   error('M is greater than the data length.');
   return
end

phi=welchse(y,ones(M,1),M,L);   % bartlett is a special case of welch.

⌨️ 快捷键说明

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