# MATLAB: Signal Normalization for cross correlation

cross correlationsignal processing

Dear All;
I need to do a cross correlation between two signals to find the displacement ( it is the same signal but it is moving and i need to find how much it shift). I need to signal normalization before doing the cross correlation , there are many techniques and each one gave different results , could you advise which is best technique .
Best Regards

% s1 = some signal% s2 = time shifted s1s1 = s1/max(abs(s1));s2 = s2/max(abs(s2));scorr = xcorr(s1,s2);