(To be removed) Convert reflection coefficients to autocorrelation coefficients
dsp.RCToAutocorrelation
will be removed in a future release. Use
rc2ac
instead. For more information,
see Compatibility Considerations.
The RCToAutocorrelation
object converts reflection
coefficients to autocorrelation coefficients.
To convert reflection coefficients to autocorrelation coefficients:
Define and set up your System object™. See Construction.
Call step
to convert reflection
coefficients according to the properties of dsp.RCToAutocorrelation
. 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.
rc2ac = dsp.RCToAutocorrelation
returns an RCToAutocorrelation
System
object, rc2ac
. This object converts reflection
coefficients to autocorrelation coefficients, assuming an error power of
1
.
rc2ac = dsp.RCToAutocorrelation('
returns an object, PropertyName
',PropertyValue
,...)rc2ac
, that converts reflection
coefficients into autocorrelation coefficients, with each specified property set to the
specified value.
|
Enable prediction error power input Choose how to select the prediction error power. When you set this
property to |
step | Convert columns of reflection coefficients to autocorrelation coefficients |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
Note: This example runs only in
R2016b or later. If you are using an earlier release, replace each call to the
function with the equivalent step
syntax. For example,
myObject(x) becomes step(myObject,x).
k = [-0.8091 0.2525 -0.5044 0.4295 -0.2804 0.0711].'; rc2ac = dsp.RCToAutocorrelation; ac = rc2ac(k);
This object implements the algorithm, inputs, and outputs described on the LPC/RC to Autocorrelation block reference page. The object properties correspond to the block parameters, except:
There is no object property that corresponds to the Type of conversion block parameter.
PredictionErrorInputPort is a pop-up menu choice on the
block. Setting the PredictionErrorInputPort
object property to false
corresponds to selecting
Assume P = 1
in the pop-up menu. Setting PredictionErrorInputPort
to true
corresponds to selecting Via input port
from the
pop-up menu.