www.gusucode.com > econ 案例源码程序 matlab代码 > econ/ConvertLagOperatorToCellArrayExample.m

    %% Determine the Equivalence of Two Lag Polynomials
%%
% Create a lag operator polynomial and convert it to a cell array:

% Copyright 2015 The MathWorks, Inc.

A = LagOp({1 0.8 0.3 0.2});
B = toCellArray(A);
isEqLagOp(A,B)
%%
% The converted cell array is equivalent to the LagOp polynomial object.