[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
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- clear /tools/hpmatlab/toolbox/matlab/general/clear.m
- conj /tools/hpmatlab/toolbox/matlab/elfun/conj.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- fft /tools/hpmatlab/toolbox/matlab/datafun/fft.m
- fftshift /tools/hpmatlab/toolbox/matlab/datafun/fftshift.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- ifft /tools/hpmatlab/toolbox/matlab/datafun/ifft.m
- imag /tools/hpmatlab/toolbox/matlab/elfun/imag.m
- isnan /tools/hpmatlab/toolbox/matlab/ops/isnan.m
- j /tools/hpmatlab/toolbox/matlab/elmat/j.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nan /tools/hpmatlab/toolbox/matlab/elmat/nan.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- nextpow2 /tools/hpmatlab/toolbox/matlab/datafun/nextpow2.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- real /tools/hpmatlab/toolbox/matlab/elfun/real.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
This function is called by
- lpc /tools/hpmatlab/toolbox/signal/lpc.m
- xcov /tools/hpmatlab/toolbox/signal/xcov.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON