[Master Index] [Index for /tools/hpmatlab/toolbox/signal]

xcorr

(/tools/hpmatlab/toolbox/signal/xcorr.m)


Function Synopsis

c = xcorr(a, b, option)

Help text

XCORR	Cross-correlation function estimates.
	XCORR(A,B), where A and B are length M vectors, returns the
	length 2*M-1 cross-correlation sequence in a column vector.
	XCORR(A), when A is a vector, is the auto-correlation sequence.
	XCORR(A), when A is an M-by-N matrix, is a large matrix with
	2*M-1 rows whose N^2 columns contain the cross-correlation
	sequences for all combinations of the columns of A.
	The zeroth lag of the output correlation is in the middle of the 
	sequence, at element or row M.
	By default, XCORR computes a raw correlation with no normalization.
	XCORR(A,'biased') or XCORR(A,B,'biased') returns the "biased"
	estimate of the cross-correlation function.  The biased estimate
	scales the raw cross-correlation by 1/M.
	XCORR(...,'unbiased') returns the "unbiased" estimate of the
	cross-correlation function.  The unbiased estimate scales the raw
	correlation by 1/(M-abs(k)), where k is the index into the result.
	XCORR(...,'coeff') normalizes the sequence so that the
	correlations at zero lag are identically 1.0.
	See also XCOV, CORRCOEF, CONV and XCORR2.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON