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

    %% Convert RC 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 reflection coefficients to linear prediction coefficients.
hlevinson = dsp.LevinsonSolver;
hac = dsp.Autocorrelator;
hac.MaximumLagSource = 'Property';
hac.MaximumLag = 10; % Compute autocorrelation
% lags between [0:10]
hrc2lpc = dsp.RCToLPC;
x = (1:100)';
a = hac(x);
k = hlevinson(a); % Compute reflection coefficients
[A, P] = hrc2lpc(k);