MATLAB Answers

Mass-univariate correlation without a loop?

2 views (last 30 days)
Rodolphe on 14 Apr 2015
Commented: Ettore on 28 May 2015
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))
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.


Ettore on 28 May 2015
Try without the loop :)

Sign in to comment.

Answers (0)

Translated by