Member of the spectral analysis and the statistics classes.
c = xcorr(a)
c = xcorr(a, l)
c = xcorr(a, option)
c = xcorr(a, l, option)
c = xcorr(a, b)
c = xcorr(a, b, l)
c = xcorr(a, b, option)
c = xcorr(a, b, l, option)
[c, d] = xcorr(a)
[c, d] = xcorr(a, l)
[c, d] = xcorr(a, option)
[c, d] = xcorr(a, l, option)
[c, d] = xcorr(a, b)
[c, d] = xcorr(a, b, l)
[c, d] = xcorr(a, b, option)
[c, d] = xcorr(a, b, l, option)
Computes the cross-correlation of the inputs.
| Name | Description | ||||||||
| a | Specifies a vector or matrix. | ||||||||
| b | Specifies a vector. | ||||||||
| l | Controls the length of the cross-correlation. If a is a vector of length n, c = xcorr(a, l) returns a vector of length 2*l+1. LabVIEW pads l with zeros when l is greater than or equal to n. | ||||||||
| option | Specifies the normalization method to use to compute the cross-correlation between a and b. option is a string that accepts the following values.
|
| Name | Description |
| c | Returns the cross-correlation between a and b. If a is a matrix, c = xcorr(a) returns the cross-correlations of all combinations of columns of a. c is vector or matrix. |
| d | Returns the indices of the cross-correlation. If you specify l, d is [-l, -l+1, ..., 0, ..., l-1, l]. d is a vector. |
A = [0.1, 0.2, 0.3, 0.4]
C = xcorr(A)