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