Mass-univariate correlation without a loop?

1 visualización (últimos 30 días)
Rodolphe
Rodolphe el 14 de Abr. de 2015
Comentada: Ettore el 28 de Mayo de 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))
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 comentarios
Rodolphe
Rodolphe el 17 de Abr. de 2015
Nobody? :)
Ettore
Ettore el 28 de Mayo de 2015
Try without the loop :)
r=corr(my_timeserie,other_timeserie)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by