%% 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.

 levinson = dsp.LevinsonSolver;
 levinson.AOutputPort = true;
 levinson.KOutputPort = false;
 x = (1:100)';
 ac = dsp.Autocorrelator(...
 'MaximumLagSource', 'Property', ...
 'MaximumLag', 10);
 a = ac(x);
 c = levinson(a); % Compute polynomial coefficients

% Copyright 2012 The MathWorks, Inc.