Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: difference between xcorr and crosscorr?
Replies: 6   Last Post: Nov 29, 2012 1:43 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tikkuhirvi Tietavainen

Posts: 94
Registered: 4/22/08
Re: difference between xcorr and crosscorr?
Posted: Oct 17, 2012 12:07 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Steven_Lord" <slord@mathworks.com> wrote in message <jgrd8p$q21$1@newscl01ah.mathworks.com>...
>
>
> "ImageAnalyst" <imageanalyst@mailinator.com> wrote in message
> news:e40817cd-e78d-4206-a604-74277c423f74@h3g2000yqe.googlegroups.com...

> > 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
> To contact Technical Support use the Contact Us link on
> 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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.