Documentation Center

  • Trial Software
  • Product Updates

isNonZero

Class: LagOp

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

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

     1

Was this topic helpful?