Main Content

lsf2poly

Convert line spectral frequencies to prediction filter coefficients

Description

a = lsf2poly(lsf) returns the prediction filter coefficients a from an array of line spectral frequencies lsf.

example

Examples

collapse all

Given a vector, lsf, of line spectral frequencies, determine the equivalent prediction filter coefficients.

lsf = [0.7842 1.5605 1.8776 1.8984 2.3593];
a = lsf2poly(lsf)
a = 1×6

    1.0000    0.6148    0.9899    0.0001    0.0031   -0.0081

Input Arguments

collapse all

Line spectral frequencies, specified as a vector or as a matrix.

If you specify lsf as a matrix, lsf2poly treats each column of lsf as a separate channel.

Data Types: single | double

Output Arguments

collapse all

Prediction filter coefficients, returned as a vector or as an N-by-(M + 1) matrix, where M is the number of line spectral frequencies and N is the number of channels. The function returns the first column of a as ones, thus a(1)=1 when a is a row vector.

References

[1] Deller, John R., John G. Proakis, and John H. L. Hansen. Discrete-Time Processing of Speech Signals. New York: Macmillan, 1993.

[2] Rabiner, Lawrence R., and Ronald W. Schafer. Digital Processing of Speech Signals. Englewood Cliffs, NJ: Prentice-Hall, 1978.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a