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

📄 lacf1.m

📁 该工具箱为时频分析中的一类重要变换,离散时频分布的工具箱,其中提供基本算法的程序.可直接应用
💻 M
字号:
function lacf = lacf1(x, mlag)% lacf1 -- Compute samples of the (type I) local acf.%%  Usage%    lacf = lacf1(x, mlag)%%  Inputs%    x      signal vector.  lacf1 assumes that x is sampled at the Nyquist%           rate and uses sinc interpolation to oversample by a factor of 2.%    mlag   maximum lag to compute.  must be <= length(x). %           (optional, defaults to length(x))%%  Outputs%    lacf  matrix containing the local acf of signal x.  If x has%          length N, then lacf will be mlag by 2N. Since lacf is symmetric,%          it is only computed for positive lags.% Copyright (C) -- see DiscreteTFDs/CopyrightN = size(x,1);if (size(x,2)>2)  error('Maximum of two columns in x.')enderror(nargchk(1, 2, nargin));if (nargin < 2)  mlag = N;endif (mlag > N)  error('mlag must be <= length(x)')endif (size(x,2)==1)  x = sinc_interp(x);  x = [x;0];  y = x;else  y = x(:,2);  x = x(:,1);  x = sinc_interp(x);  x = [x;0];  y = sinc_interp(y);  y = [y;0];endN = length(x);% create the local acf for positive taulacf = zeros(mlag, N);for t = 1:N,  mtau = min(t, N-t+1);  mtau = min(mtau, mlag);  lacf(1:mtau,t) = x(t:t+mtau-1) .* conj(y(t:-1:t-mtau+1));end

⌨️ 快捷键说明

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