Signal Normalization for cross correlation
1 回表示 (過去 30 日間)
古いコメントを表示
mustafa alnasser
2015 年 6 月 19 日
回答済み: Abhiram Bhanuprakash
2015 年 6 月 22 日
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
0 件のコメント
採用された回答
Abhiram Bhanuprakash
2015 年 6 月 22 日
Hi Mustafa,
Since in your case you are doing a cross-correlation between a signal and its own shifted version, to simplify things, you would just need to ensure that the signal and its shifted version have the same scaling. To ensure this, you can use something like:
% s1 = some signal
% s2 = time shifted s1
s1 = s1/max(abs(s1));
s2 = s2/max(abs(s2));
scorr = xcorr(s1,s2);
Hope this helps,
Cheers!
Abhiram
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!