(To be removed) Convert reflection coefficients to linear prediction coefficients
dsp.RCToLPC
will be removed in a future release. Use rc2poly
instead. For more information, see Compatibility Considerations.
The RCToLPC
object converts reflection coefficients
to linear prediction coefficients.
To convert reflection coefficients to LPC:
Define and set up your RC to LPC System object™. See Construction.
Call step
to convert RC to LPC according
to the properties of dsp.RCToLPC
. 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.
rc2lpc = dsp.RCToLPC
returns an RC to LPC System
object, rc2lpc
, that converts reflection
coefficients (RC) to linear prediction coefficients (LPC).
rc2lpc = dsp.RCToLPC('
returns an RC to LPC conversion object, PropertyName
',PropertyValue
,...)rc2lpc
, with
each specified property set to the specified value.
|
Enable normalized prediction error power output Set this property to |
|
Produce output with stability status of filter represented by LPC coefficients Set this property to |
step | Convert columns of reflection coefficients to linear prediction 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 reflection coefficients to linear prediction coefficients.
levinson = dsp.LevinsonSolver; ac = dsp.Autocorrelator; ac.MaximumLagSource = 'Property'; ac.MaximumLag = 10; % Compute autocorrelation % lags between [0:10] rc2lpc = dsp.RCToLPC; x = (1:100)'; a = ac(x); k = levinson(a); % Compute reflection coefficients [A, P] = rc2lpc(k);
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. |