Correlation matrix for timeseries objects

2 vues (au cours des 30 derniers jours)
Syed Abbas
Syed Abbas le 20 Déc 2011
Hi, I have 10 timseseries objects with equal time vectors. I want to get a correlation matrix for these timeseries. corrcoef does not take in multiple matrices as arguments. Is there a way of finding the correlation matrix?

Réponse acceptée

the cyclist
the cyclist le 21 Déc 2011
I'm not sure what your inputs look like. If they are vectors, you can concatenate them into one matrix that you can use as an input into corrcoef. Here's an example where I concatenate three random vectors:
r = corrcoef([rand(10,1),rand(10,1),rand(10,1)])
  1 commentaire
Syed Abbas
Syed Abbas le 21 Déc 2011
I think that works! Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Time Series dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by