I have to compute the cross-correlation between two transient signals, which could be decomposed into a trend (with non-zero mean value) + noise.
In particular I am interested in the max of the cross-correlation.
It seems that in MATLAB the cross-correlation is more accurate if it is calculated using the function xcov()
rather then xcorr()
, probably as a consequence of the fact that the function xcov()
removes the mean value of the signal.
An example of two signals between which I would have to measure similarity can be this one:
Do you know if this makes sense and why?