得不到LZ的结果。查了一下autocorr函数如下:
help autocorr
[R] = autocorr(s,P)
where s is the input vector, and P is the order of prediction.
Function to compute the autocorrelation of the data
computes autocorrelation R(i) for i=1, .. ,P+1.
难道是版本 不同
AUTOCORR Compute or plot sample auto-correlation function.
Compute or plot the sample auto-correlation function (ACF) of a univariate,
stochastic time series. When called with no output arguments, AUTOCORR
displays the ACF sequence with confidence bounds.