Correlate Signals with different time points
2 views (last 30 days)
Show older comments
Sam Hurrell on 27 Sep 2022
I have two datasets (simulation and experimental) with normalised amplitudes, and I need to find a correlation coefficient for the two outputs. The problem is that these two signals have their values taken at different timesteps to each other, so how can I correlate them? Additionally how could I correlate them if the two datasets were at different lengths?
Mathieu NOE on 29 Sep 2022
is the delta in time steps constant or not ?
have you tried to use xcorr to measure (and correct) for delay ?
Chunru on 30 Sep 2022
Edited: Chunru on 30 Sep 2022
You can resample the data into sime sampling time:
After both signals are sampled in the same time grid:
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!