Main Content

isNonZero

Find lags associated with nonzero coefficients of LagOp objects

Syntax

indicator = isNonZero(A,testLags)

Description

Given a vector of candidate lags to test, indicator = isNonZero(A,testLags), determines which lags are associated with nonzero coefficients of a lag operator polynomial A(L).

Examples

expand all

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)
ans = logical
   1