Calculate windowed cross correlation between two signals A and B up to a pre-defined lag. Usage is similar to the Matlab function SPECGRAM.
Norbert Marwan (2021). Windowed Cross Correlation (corrgram) (https://www.mathworks.com/matlabcentral/fileexchange/15299-windowed-cross-correlation-corrgram), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Hi, is it possible to calculate the significance of the correlations?
I agree
Very useful tool, something that should be available as a built-in.
I'm getting an out of memory error for two ~300000 element vectors - it seems that Matlab should be able to handle data of that size. The problem is with the X=buffer(...) on line 87, and I'm looking into it myself but I thought I'd post a message too.