Mass-univariate correlation without a loop?

1 回表示 (過去 30 日間)
Rodolphe
Rodolphe 2015 年 4 月 14 日
コメント済み: Ettore 2015 年 5 月 28 日
I have to correlate one time-serie with thousands of others. So far im using a loop which looks approximately like this:
for i=1:length(other_timeserie)
r(i) = corr(my_timeserie,other_timeserie(i))
end
The problem is that it takes forever to run, i was wondering if there was a mass-univariate way to do this without a loop. I thought about using xcorr , but the results is way too big and often create a memory crash.
  2 件のコメント
Rodolphe
Rodolphe 2015 年 4 月 17 日
Nobody? :)
Ettore
Ettore 2015 年 5 月 28 日
Try without the loop :)
r=corr(my_timeserie,other_timeserie)

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by