How to calculate correlation coefficient for two time series signal x(t) and y(t)?

25 ビュー (過去 30 日間)
I have two time series signal in csv file which contain 1 million data point. I want to find out normalized cross correlation coefficient for these two signal . How can i do?

採用された回答

David Hill
David Hill 2019 年 8 月 24 日
I believe you just need to read the files into vectors (x and y) and then use the xcorr function.
x = readmatrix('x.csv');
y = readmatrix('y.csv');
[c,lags] = xcorr(x,y);
Now if you want to visualize.
stem(lag,c)

その他の回答 (1 件)

Deepika Behmani
Deepika Behmani 2019 年 8 月 25 日
Hi David ,
Actually i have tried this method what you suggested but if i want to do normalized correlation then what change i should make?

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by