%% Check a Lag Operator Polynomial for Stability
% Divide two Lag Operator polynomial objects and check if the resulting polynomial is stable:

A = LagOp({1 -0.6 0.08});
B = LagOp({1 -0.5});
[indicator,eigenvalues]=isStable(A\B)

% Copyright 2015 The MathWorks, Inc.