How to calculate computing correlation coefficients with a sliding window?

조회 수: 1 (최근 30일)
Kathleen
Kathleen 2015년 4월 2일
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에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by