The Crosscorrelator
returns the crosscorrelation
sequence for two discretetime deterministic inputs. This object can
also return the crosscorrelation sequence estimate for two discretetime,
jointly widesense stationary (WSS), random processes.
To obtain the crosscorrelation for two discretetime deterministic inputs:
Define and set up your crosscorrelator. See Construction.
Call step
to compute the crosscorrelation
according to the properties of dsp.Crosscorrelator
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the 
xcorr = dsp.Crosscorrelator
returns
a crosscorrelator object, xcorr
, that computes the
crosscorrelation of two inputs. For ND arrays, the crosscorrelator
computes the correlation columnwise. The inputs must have an equal
number of columns. If one input is a vector and the other is an ND
array, the crosscorrelator computes the crosscorrelation of the
vector with each column of the ND array. Cross correlating inputs
of length N and M results in
a crosscorrelation sequence of length N+M–1.
Cross correlating matrices of size MbyN and PbyN results
in a matrix of crosscorrelation sequences of size M+P–1byN.
xcorr = dsp.Crosscorrelator('
returns a crosscorrelator, PropertyName
',PropertyValue
,
...)xcorr
,
with each property set to the specified value.

Domain for computing correlations Specify the domain for computing correlation as 
step  Crosscorrelation 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 