(To be removed) Convert linear prediction coefficients to autocorrelation coefficients
dsp.LPCToAutocorrelation
will be removed in a future release. Use
poly2ac
from Signal
Processing Toolbox™ instead. For more information, see Compatibility Considerations.
The LPCToAutocorrelation
System
object™ converts linear prediction coefficients to autocorrelation
coefficients.
To convert LPC to autocorrelation coefficients:
Define and set up your LPC to autocorrelation object. See Construction.
Call step
to convert LPC according to the
properties of dsp.LPCToAutocorrelation
. 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.
lpc2ac = dsp.LPCToAutocorrelation
returns an LPC to
autocorrelation System
object, lpc2ac
, that converts linear prediction
coefficients (LPC) to autocorrelation coefficients.
lpc2ac = dsp.LPCToAutocorrelation('
returns an PropertyName
',PropertyValue
,...)LPC
to autocorrelation conversion object,
lpc2ac
, 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 |
|
Action to take when first LPC coefficient is not Specify the action that the object takes when the first coefficient of
each channel of the LPC input is not |
step | Autocorrelation coefficients from LPC 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).
Convert the linear prediction coefficients to autocorrelation coefficients.
a = [1.0 -1.4978 1.4282 -1.3930 0.9076 -0.3855 0.0711].'; lpc2ac = dsp.LPCToAutocorrelation; ac = lpc2ac(a);
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:
The object does not have a property that corresponds to the Type
of Conversion block parameter. The object's behavior corresponds
to the block's behavior when you set the Type of Conversion
parameter to LPC to autocorrelation . |