3.0

3.0 | 3 ratings Rate this file 17 Downloads (last 30 days) File Size: 2.29 KB File ID: #78

XCORR2x.m

by J. Cogdell

 

01 Jan 1999

Normalizes the output of cross-correlation function XCORR2.M according to 'biasflag'.

| Watch this File

File Information
Description

function C = XCORR2x(A,B,'biasflag')
 
PURPOSE: Normalizes the output of cross-correlation function XCORR2.M according to 'biasflag':
 
         biased - scales the raw cross-correlation by the maximum number of elements of A and B involved in the generation of any element of C
         unbiased - scales the raw correlation by dividing each element in the cross-correlation matrix by the number of products A and B used to generate that element
         coeff - normalizes the sequence so that the largest cross-correlation element is identically 1.0.
         none - no scaling (this is the default).

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
09 Oct 2002 Piotr Majdak

very fast for short vectors, but doesn't work for longer vectors due to building a diagonal matrix of the input.

27 Jan 2003 ali panahi

cross correlation autocorrelation fft dtt overlab savemethod overlab add method

27 Jan 2003 ali panahi

cross correlation autocorrelation fft dtt overlab savemethod overlab add method

11 Sep 2004 sundar ganesh ayyasamy  
02 Jun 2007 RJV RJV  
07 Jul 2009 Kurijn Buys

Nice, but the coeff method is just a normalisation by the maximum correlation value: C = C/max(C(:))'.
Not like in xcorr: "so that the auto-correlations at zero lag are identically 1.0."

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
dsp J. Cogdell 22 Oct 2008 06:31:41
crosscorrelation J. Cogdell 22 Oct 2008 06:31:42
normalize J. Cogdell 22 Oct 2008 06:31:42
xcorr2 J. Cogdell 22 Oct 2008 06:31:42
cross J. Cogdell 22 Oct 2008 06:31:42
correlation J. Cogdell 22 Oct 2008 06:31:42

Contact us at files@mathworks.com