Autocorrelation sequence
The Autocorrelator
object returns the autocorrelation
sequence for a discretetime, deterministic input, or the autocorrelation
sequence estimate for a discretetime, widesense stationary (WSS)
random process at positive lags.
To obtain the autocorrelation sequence:
Define and set up your autocorrelator. See Construction.
Call step
to compute the autocorrelation
sequence according to the properties of dsp.Autocorrelator
.
The behavior of step
is specific to each object in
the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
ac = dsp.Autocorrelator
returns
an autocorrelator, ac
, that computes the autocorrelation
along the first dimension of an ND array. By default, the autocorrelator
computes the autocorrelation at lags from zero to N
– 1, where N is the length of the input
vector or the row dimension of the input matrix. Inputting a row vector
results in a row of zerolag autocorrelation sequence values, one
for each column of the row vector. The default autocorrelator returns
the unscaled autocorrelation and performs the computation in the time
domain.
ac = dsp.Autocorrelator('
returns an autocorrelator, PropertyName
',PropertyValue
,
...)ac
, with
each property set to the specified value.

Source of maximum lag Specify how to determine the range of lags for the autocorrelation as 

Maximum positive lag Specify the maximum lag as a positive integer. This property applies only when the


Autocorrelation function scaling Specify the scaling to apply to the output as The The Use the 

Domain for computing autocorrelations Specify the domain for computing autocorrelations as 
step  Autocorrelation sequence 
Common to All System Objects  

clone  Create System object with same property values 
getNumInputs  Expected number of inputs to a System object 
getNumOutputs  Expected number of outputs of a System object 
isLocked  Check locked states of a System object (logical) 
release  Allow System object property value changes 