| Target Support Package™ TC6 | ![]() |
C62x DSP Library — Math and Matrices
The Autocorrelation block computes the autocorrelation of an input vector or frame-based matrix. For frame-based inputs, the autocorrelation is computed along each of the input's columns. The number of samples in the input channels must be an integer multiple of eight. Input and output signals are real and Q.15.
Autocorrelation blocks support discrete sample times and little-endian code generation only.

When you select this parameter, the autocorrelation is performed using all nonnegative lags, where the number of lags is one less than the length of the input. The lags produced are therefore in the range [0, length(input)-1]. When this parameter is not selected, you specify the lags used in Maximum non-negative lag (less than input length).
Specify the maximum lag (maxLag) the block should use in performing the autocorrelation. The lags used are in the range [0, maxLag]. The maximum lag must be odd. Enable this parameter by clearing the Compute all non-negative lags parameter.
In simulation, the Autocorrelation block is equivalent to the TMS320C62x DSP Library assembly code function DSP_autocor. During code generation, this block calls the DSP_autocor routine to produce optimized code.
![]() | C6000 UDP Send | C62x Bit Reverse | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |