%% Create and Modify Univariate Lag Operator Polynomial
% Create a LagOp object that represents the lag operator polynomial
% A(L)=1-0.6L+0.08L^2.

A = LagOp([1 -0.6 0.08])

% Display the coefficient of lag 0.

a0 = A.Coefficients{0}

% Assign a nonzero coefficient to the third lag:

A.Coefficients{3} = 0.5

% The polynomial degree increases to 3.
% Copyright 2020 The MathWorks, Inc.