Clear Filters
Clear Filters

Should the best cross correlation value be the larger or smaller?

2 views (last 30 days)
If i use the xcorr function to get the max cross correlation of signal s1 compared to s2 and then i compare the cross correlation of a different signal to signal s2 and get the max of that. Should the signal that is a better match be the larger or the smaller? I had assumed the larger would be the better because its more correlated. But having tried this out the signal with the lower max cross correlation looks like a better fit?
  1 Comment
Ronan
Ronan on 15 May 2015
So this doesnt make sense. If you want to define how well they match you can use something like the sum of squares. But xcorr looks for where on the signal they closest match. So you cant say something like signal A is better correlated to signal x than signal B is correlated to signal x. The "goodness" of correlation is where one signal aligns best with another so its out of context to compare to another signal.

Sign in to comment.

Answers (1)

Mahdiyar
Mahdiyar on 15 May 2015
Hi Depend on what you want to do with the signals s1, s2,.... Sometimes you need to have some completely unique signals which have the least similarity together as much as possible. In this case it would be better to have the low cross correlation.
If you need to use signals with the most similarity, the higher cross correlation is more desirable.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!