Cross-Correlation to obtain lag time and correlation coefficient in different periods

4 views (last 30 days)
Dear Colleagues, I have written code that produces a graph giving the xcorr coeff of two signals: s1 and s2. % x=(s1); y=(s2); [c,lags]=xcorr(x,y,'coeff'); My question is how to write code to obtain this figure :
Please help. Kind regards.

Answers (0)

Community Treasure Hunt

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

Start Hunting!