How to calculate computing correlation coefficients with a sliding window?

1 次查看(过去 30 天)
Hi, I have two time series data, for example:
t=0:0.01:1; y1=sin(2*pi*5*t); y2=-sin(2*pi*5*t);
I want to calculate the correlation coefficients between the two columns using 0.02s sliding window. I am trying to use corrcoef syntax, but I don't seem to be able to make it work. I tried several different ways of doing it but always without success... Can anybody tell me how to make this work?
Thanks for your help!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by