Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Sample cross-correlation

`crosscorr(y1,y2)`

`crosscorr(y1,y2,numLags)`

`crosscorr(y1,y2,numLags,numSTD)`

`xcf = crosscorr(y1,y2)`

`xcf = crosscorr(y1,y2,numLags)`

`xcf = crosscorr(y1,y2,numLags,numSTD)`

```
[xcf,lags,bounds]
= crosscorr(___)
```

`crosscorr(`

plots
the sample
cross correlation (XCF) between the two univariate, stochastic
time series `y1`

,`y2`

)`y1`

and `y2`

with
confidence bounds.

[1] Box, G. E. P., G. M. Jenkins, and G. C. Reinsel. *Time
Series Analysis: Forecasting and Control*. 3rd ed. Englewood
Cliffs, NJ: Prentice Hall, 1994.

Was this topic helpful?