xcorr incompatibilty

Ben Abbott bpabbott at mac.com
Sun Feb 3 19:50:52 CST 2008


On Feb 3, 2008, at 8:39 AM, nit ar wrote:

> Hello Octave maintainers,
>
> I have found some incompatibility of the xcorr function between  
> Octave and Matlab.
>
> When using c=xcorr(x,y,'coeff'), the 'coeff' scale is used by Octave  
> to normalize the cross correlation c at lag=0 to the value 1.0.
> On the other hand, Matlab uses the 'coeff' scale to normalize the  
> the cross correlation with an equivalent factor such that the  
> autocorrelations of both x and y are 1.0 at lag=0 !
>
> This produce different scaling by xcorr(x,y,'coeff') in Octave and  
> Matlab !
> I assume that this is not a bug since the different behavior is  
> clearly documented as different. It may be useful to change the  
> definition of Octave's xcorr scale parameter to be compatible with  
> Matlab definition (this can be easily done in the xcorr.m code).
>
> Nitzan Arazi

Ntizan,

I have both Matlab and Octave installed. However, xcorr is not  
available in either.

I believe that xcorr is part of Mathworks "Signal Processing Toolbox",  
and that it is available in the Signal Processing package on Octave- 
forge, as well.

	http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/signal/inst/xcorr.m?revision=HEAD&content-type=text/plain

For Octave-forge bugs, please follow the link below and report the bug  
there.

	http://octave.sourceforge.net/bugs.html

Ben




-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080203/ee540840/attachment.html 


More information about the Bug-octave mailing list