声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 921|回复: 1

[编程技巧] Codes for autocorrelation with 25 lags

[复制链接]
发表于 2009-6-3 13:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
大家好,

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

使用道具 举报

发表于 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

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-10-6 09:54 , Processed in 0.057787 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表