The XCOV function in the Signal Processing Toolbox 6.8 (R2007b) has four distinct options: 'biased', 'unbiased', 'coeff', and 'none'. I would like to be able to create unbiased estimates of the cross-covariance function of my sequence with a normalized zero lag term.
John Michell answered .
2025-11-20
ww = randn(1000,1); N = 10; [cov_ww,lags] = xcov(ww,N,'unbiased'); cov_ww = cov_ww / cov_ww(N+1); stem(lags,cov_ww)