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

    %% Compute Polynomial 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).

%%
% Use the Levinson solver to compute polynomial coefficients from
% autocorrelation coefficients.
 hlevinson = dsp.LevinsonSolver;
 hlevinson.AOutputPort = true;
 hlevinson.KOutputPort = false;
 x = (1:100)';
 hac = dsp.Autocorrelator(...
 'MaximumLagSource', 'Property', ...
 'MaximumLag', 10);
 a = hac(x);
 c = hlevinson(a); % Compute polynomial coefficients