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

📄 autoc.m

📁 统计自适应信号处理的matlab程序
💻 M
字号:
function r=autoc(x,L)
%
% Computation of the  autocorellation 
% sequence r(l), l=0,1,...,L-1, L <= Lx.
% The mean value is removed
%
% Programmed by: Dimitris Manolakis, 10/4/93
%
%-----------------------------------------------------------
% 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.
%-----------------------------------------------------------


Lx=length(x);
x1=zeros(Lx+L-1,1);
x2=x1;
x=x-mean(x);
x1(1:Lx,1)=x;
for k=1:L
	x2=zeros(Lx+L-1,1);
	x2(k:Lx+k-1,1)=x;
	r(k)=x1'*x2;
end
r=r/Lx;
r=r(:);

⌨️ 快捷键说明

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