Correlation matrix for timeseries objects

1 回表示 (過去 30 日間)
Syed Abbas
Syed Abbas 2011 年 12 月 20 日
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?

採用された回答

the cyclist
the cyclist 2011 年 12 月 21 日
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 件のコメント
Syed Abbas
Syed Abbas 2011 年 12 月 21 日
I think that works! Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by