Karen_Chang 发表于 2009-6-3 13:36

Codes for autocorrelation with 25 lags

大家好,

我是个matlab 的新手,对它不大了解。我有一个时间序列,y, 我要做它的autocorrelation with 25 lags, 这个程序怎么写?
我看了一下,好象是MATLAB 做 autocorrelation 时,lags 最多是20 个,是吗? 我要是想用多于20 个lags 怎么写这个程序呢?
非常紧急。谢谢大家了!

friendchj 发表于 2009-6-3 17:17

help xcorr
c = xcorr(x,maxlags) returns the autocorrelation sequence over the lag range [-maxlags:maxlags]. Output c has length 2*maxlags+1. If x is an N-by-P matrix, c is a matrix with 2*maxlags+1 rows whose P2 columns contain the autocorrelation sequences for all combinations of the columns of x.

lags 最多是20 个,不知从何而来?
页: [1]
查看完整版本: Codes for autocorrelation with 25 lags