(To be removed) Convert linear prediction coefficients to reflection coefficients
dsp.LPCToRC
will be removed in a future release. Use poly2rc
instead. For more information, see Compatibility Considerations.
The LPCToRC
object converts linear prediction
coefficients to reflection coefficients.
To convert LPC to reflection coefficients:
Define and set up your LPC to RC converter. See Construction.
Call step
to convert LPC according to the
properties of dsp.LPCToRC
. 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.
lpc2rc = dsp.LPCToRC
returns an LPC to RC System
object, lpc2rc
, that converts linear prediction
coefficients (LPC) to reflection coefficients (RC).
lpc2rc = dsp.LPCToRC('
returns an LPC to RC conversion object, PropertyName
',PropertyValue
,...)lpc2rc
, with
each specified property set to the specified value.
|
Enable normalized prediction error power output Set this property to |
|
Produces output with stability status of filter represented by LPC coefficients Set this property to |
|
Action to take when first LPC coefficient is not 1 Specify the action that the object takes when the first coefficient of
each channel of the LPC input is not 1. Select |
step | Convert columns of linear prediction coefficients to reflection 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 reflection coefficients:
load mtlb levinson = dsp.LevinsonSolver; levinson.AOutputPort = true; levinson.KOutputPort = false; ac = dsp.Autocorrelator; lpc2rc = dsp.LPCToRC; ac.MaximumLagSource = 'Property';
Compute autocorrelation for lags between [0:10]
ac.MaximumLag = 10; a = ac(mtlb); A = levinson(a); % Compute LPC coefficients [K, P] = lpc2rc(A); % Convert to RC
This object implements the algorithm, inputs, and outputs described on the LPC to/from RC 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. The object always converts LPC to RC.
The NonUnityFirstCoefficientAction
object
property corresponds to the If first input value is not 1
block parameter. There is neither a Normalize and
warn
nor an Error
option for the
object.