Mass-univariate correlation without a loop?

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

카테고리

질문:

2015년 4월 14일

댓글:

2015년 5월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by