MATLAB: Measure the difference between two signal

analysiscross correlationsimiliarity

Hi , i have two signals the first one is the reference , and the second is recorded , im trying to measure the similarities between using the xcorr function , the issue is that timing between the peeks of both signals is different , but if look on them in the time domain , its possible to find the similarities between :
so i tried to use the xcorr function , and this is the result i'v got :
are there any other matlab functions differ than XCORR ?

Best Answer

For this kind of task you may want to look into dynamic time warping
https://en.wikipedia.org/wiki/Dynamic_time_warping
There are several MATLAB implementation online.
HTH
Related Question