%% Lag Operator Polynomial of Coefficients
%% Specify lag op poly

A = LagOp({1,-0.3,0.6},'Lags',[0,1,4])

%
%% Return lag 4 coefficient

A.Coefficients{4}

%
%% Return lag 0 coefficient

A.Coefficients{0}

%
%% Return lag 6 coefficient

A.Coefficients{6}

%
%% Set lag 6 coefficient

A.Coefficients{6} = 0.4

%
%% Set lag 0 coefficient

A0 = A.Coefficients(0)

%
%% Return class of A0

class(A0)

%
%% Return class of coefficient directly

class(A.Coefficients{0})

% Copyright 2015 The MathWorks, Inc.