DSP Blockset | ![]() ![]() |
Compute the autocorrelation of a vector input.
Library
Description
The Autocorrelation block computes the autocorrelation of each column (channel) in an M-by-N input matrix u. Matrix inputs must be frame-based. The result, y, is a frame-based (l+1)-by-N matrix whose jth column has elements
where * denotes the complex conjugate, and l represents the maximum lag. Note that y1,j is the zero-lag element in the jth column. When All positive lags is selected, l=M. Otherwise, l is specified as a nonnegative integer by the Maximum positive lag parameter.
Input u is zero when indexed outside of its valid range. When the input is real, the output is real; otherwise, the output is complex. If the input is a sample-based vector (row, column, or 1-D), the output is sample-based, with the same shape as the input and length l+1. The Autocorrelation block does not accept a sample-based full-dimension matrix input.
The Scaling parameter controls the scaling that is applied to the output. The following options are available:
Dialog Box
See Also
Correlation |
DSP Blockset |
xcorr |
Signal Processing Toolbox |
![]() | Analytic Signal | Autocorrelation LPC | ![]() |