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

📄 bart.m

📁 solution for the Statistical modelling for digital signal processing by hayes
💻 M
字号:
function Px = bart(x,nsect)%BART	Bartlett's method of periodogram averaging.%----%USAGE	Px = bart(x,nsect) %%	The spectrum of a process x is estimated using Bartlett's %	method of periodogrm averaging.%	%	x     :  Input sequence%	nsect :	 Number of subsequences to be used in the average%%	The Bartlett estimate is returned in Px using a linear scale.%%  see also PER, MPER, WELCH, and SPER%%---------------------------------------------------------------% copyright 1996, by M.H. Hayes.  For use with the book % "Statistical Digital Signal Processing and Modeling"% (John Wiley & Sons, 1996).%---------------------------------------------------------------L  = floor(length(x)/nsect);Px = 0;n1 = 1;for i=1:nsect    Px = Px + per(x(n1:n1+L-1))/nsect;    n1 = n1 + L;    end;

⌨️ 快捷键说明

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