Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: difference between xcorr and crosscorr?
Replies: 9   Last Post: Aug 9, 2017 9:57 AM

 Messages: [ Previous | Next ]
 Tikkuhirvi Tietavainen Posts: 99 Registered: 4/22/08
Re: difference between xcorr and crosscorr?
Posted: Oct 17, 2012 12:07 PM

"Steven_Lord" <slord@mathworks.com> wrote in message <jgrd8p\$q21\$1@newscl01ah.mathworks.com>...
>
>
> "ImageAnalyst" <imageanalyst@mailinator.com> wrote in message

> > I don't see crosscorr() - is that in some particular toolbox? Where
> > did you get it?

>
> It's in Econometrics Toolbox.
>
> http://www.mathworks.com/help/toolbox/econ/crosscorr.html
>
> while XCORR is in Signal Processing Toolbox.
>
> http://www.mathworks.com/help/toolbox/signal/ref/xcorr.html
>
> One difference I see between them at first glance is what they return and
> what options they allow. Signal Processing Toolbox just returns the
> correlations and lags while allowing the user to specify a normalization
> method, while Econometrics Toolbox returns correlations, lags, and
> confidence bounds but does not allow the user to specify a normalization
> method.
>
> --
> Steve Lord
> slord@mathworks.com
> http://www.mathworks.com

Hi all!

I have the same problem.. Apparently if you subtract the mean out of the input vectors, both the functions give the same result. Also if you don't normalize the results (if you comment row 190 in crosscorr), there will still be a difference between the results.

So which one is the correct one?

-Aino

Date Subject Author
2/4/12 Iris Ehlert
2/4/12 ImageAnalyst
2/7/12 Steven Lord
10/17/12 Tikkuhirvi Tietavainen
8/9/17 Greg Heath
10/18/12 Rick
7/11/17 E. Natasha Stavros
7/12/17 Rick
11/27/12 Ye Gao
11/29/12 Greg Heath