필터 지우기
필터 지우기

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)])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by