| Signal Processing Blockset™ | ![]() |
Convert linear prediction coefficients to cepstral coefficients or cepstral coefficients to linear prediction coefficients
Estimation / Linear Prediction
dsplp

The LPC to/from Cepstral Coefficients block either converts linear prediction coefficients (LPCs) to cepstral coefficients (CCs) or cepstral coefficients to linear prediction coefficients. Set the Type of conversion parameter to LPCs to cepstral coefficients or Cepstral coefficients to LPCs to select the domain into which you want to convert your coefficients. The LPC port corresponds to LPCs, and the CC port corresponds to the CCs. For more information, see Algorithm.
The block input must be a sample-based row vector, which is treated as a single channel, or a matrix, which is treated as a single channel per column.
Consider a signal x(n) as the input to an FIR analysis filter represented by LPCs. The output of this analysis filter, e(n), is known as the prediction error signal. The power of this error signal is denoted by P, the prediction error power.
When you select LPCs to cepstral coefficients from the Type of conversion list, you can specify the prediction error power in two ways. From the Specify P list, choose via input port to input the prediction error power using input port P. The input to the port must be a vector with length equal to the number of input channels. Select assume P equals 1 to set the prediction error power equal to 1 for all channels.
When you select LPCs to cepstral coefficients from the Type of conversion list, the Output size same as input size check box appears. When you select this check box, the length of the input vector of LPCs is equal to the output vector of CCs. When you do not select this check box, enter a positive scalar for the Length of output cepstral coefficients parameter.
When you select LPCs to cepstral coefficients from the Type of conversion list, you can use the If first input value is not 1 parameter to specify the behavior of the block when the first coefficient of the LPC vector is not 1. The following options are available:
Replace it with 1 —- Changes the first value of the coefficient vector to 1. The other coefficient values are unchanged.
Normalize — Divides the entire vector of coefficients by the first coefficient so that the first coefficient of the LPC vector is 1.
Normalize and Warn — Divides the entire vector of coefficients by the first coefficient so that the first coefficient of the LPC vector is 1. The block displays a warning message telling you that your vector of coefficients has been normalized.
Error — Displays an error telling you that the first coefficient of the LPC vector is not 1.
When you select Cepstral coefficients to LPCs from the Type of conversion list, the Output P check box appears on the block. Select this check box when you want to output the prediction error power from output port P.
The cepstral coefficients are the coefficients of the Fourier transform representation of the logarithm magnitude spectrum. Consider a sequence, x(n), having a Fourier transform X(ω). The cepstrum, cx(n), is defined by the inverse Fourier transform of Cx(ω), where Cx(ω) = logeX (ω). See the Real Cepstrum block reference page for information on computing cepstrum coefficients from time-domain signals.
When in this mode, this block uses a recursion technique to
convert LPCs to CCs. The LPC vector is defined by
and the CC vector
is defined by
.
The recursion is defined by the following equations:
![]()


When in this mode, this block uses a recursion technique to
convert CCs to LPCs. The CC vector is defined by
and the LPC vector
is defined by
.
The recursion is defined by the following equations

![]()
where
.

Choose LPCs to cepstral coefficients or Cepstral coefficients to LPCs to specify the domain into which you want to convert your coefficients.
Choose via input port to input the values of prediction error power using input port P. Select assume P equals 1 to set the prediction error power equal to 1.
When you select this check box, the length of the input vector of LPCs is equal to the output vector of CCs.
Enter a positive scalar that is the length of each output channel of CCs.
Select what you would like the block to do when the first coefficient of the LPC vector is not 1. You can choose Replace it with 1, Normalize, Normalize and Warn, and Error.
Select this check box to output the prediction error power for each channel from output port P.
Papamichalis, Panos E. Practical Approaches to Speech Coding. Englewood Cliffs, NJ: Prentice Hall, 1987.
Double-precision floating point
Single-precision floating point
| Levinson-Durbin | Signal Processing Blockset |
| LPC to LSF/LSP Conversion | Signal Processing Blockset |
| LSF/LSP to LPC Conversion | Signal Processing Blockset |
| LPC to/from RC | Signal Processing Blockset |
| LPC/RC to Autocorrelation | Signal Processing Blockset |
| Real Cepstrum | Signal Processing Blockset |
| Complex Cepstrum | Signal Processing Blockset |
![]() | LSF/LSP to LPC Conversion | LPC to/from RC | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |