www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ConvertLPCToLSPCoefficientsExample.m

    %% Convert LPC To LSP 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 the linear prediction coefficients to line spectral pairs.
a = [1.0000 0.6149 0.9899 0.0000 0.0031 -0.0082]';
hlpc2lsp = dsp.LPCToLSP;
y = hlpc2lsp(a); % Convert to LSP coefficients