www.gusucode.com > econ 案例源码程序 matlab代码 > econ/LagOperatorPolynomialOfCoefficientsExample.m
%% Lag Operator Polynomial of Coefficients %% Specify lag op poly % Copyright 2015 The MathWorks, Inc. A = LagOp({1,-0.3,0.6},'Lags',[0,1,4]) %% Return lag 4 coefficent A.Coefficients{4} %% Return lag 0 coefficent A.Coefficients{0} %% Return lag 6 coefficient A.Coefficients{6} %% Set lag 6 coefficient A.Coefficients{6} = 0.4 %% Set lag 0 coefficient A0 = A.Coefficients(0) %% Return class of A0 class(A0) %% Return class of coefficient directly class(A.Coefficients{0})