dsp.CepstralToLPC

(To be removed) Convert cepstral coefficients to linear prediction coefficients

dsp.CepstralToLPC will be removed in a future release. For more information, see Compatibility Considerations.

Description

The CepstralToLPC object converts cepstral coefficients to linear prediction coefficients (LPC).

To convert cepstral coefficients to LPC:

  1. Define and set up your System object™. See Construction.

  2. Call step to convert the coefficients according to the properties of dsp.CepstralToLPC. The behavior of step is specific to each object in the toolbox.

Note

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.

Construction

cc2lpc = dsp.CepstralToLPC returns a System object, cc2lpc, that converts the cepstral coefficients(CCs) to linear prediction coefficients (LPCs).

cc2lpc = dsp.CepstralToLPC('PropertyName',PropertyValue,...) returns a Cepstral to LPC object, cc2lpc, with each specified property set to the specified value.

Properties

PredictionErrorOutputPort

Enable prediction error power output

Set this property to true to output the prediction error power. The prediction error power is the power of the error output of an FIR analysis filter represented by the LPCs for a given input signal. The default is false.

Methods

stepLPC coefficients from column of cepstral coefficients
Common to All System Objects
release

Allow System object property value changes

Examples

Convert Cepstral To LPC Coefficients

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 cepstral coefficients to linear prediction coefficients.

cc = [0 0.9920 0.4919 0.3252 0.2418 , ...
    0.1917 0.1583 0.1344 0.1165 0.0956]';
cc2lpc = dsp.CepstralToLPC;
a = cc2lpc(cc)
a = 10×1

    1.0000
   -0.9920
    0.0001
    0.0001
    0.0001
    0.0001
    0.0001
    0.0001
    0.0001
    0.0070

Algorithms

This object implements the algorithm, inputs, and outputs described on the LPC to/from Cepstral Coefficients block reference page. The object properties correspond to the block parameters.

Compatibility Considerations

expand all

Warns starting in R2019a

Extended Capabilities

Introduced in R2012a