How to calculate correlation coefficient for two time series signal x(t) and y(t)?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Deepika Behmani
el 24 de Ag. de 2019
Comentada: Deepika Behmani
el 25 de Ag. de 2019
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?
2 comentarios
Respuesta aceptada
David Hill
el 24 de Ag. de 2019
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)
0 comentarios
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!