%% Determine Which Lag Has a Nonzero Coefficient
% Create a Lag Operator polynomial object and add a term with the Coefficients property:

A = LagOp({1 0.8 0.3 0.2});
A.Coefficients(7)={0.5};
isNonZero(A,7)

% Copyright 2015 The MathWorks, Inc.