www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localtruncps/polynom.m

    function poly= polynom(ts)
%POLYNOM

%  Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc.

beta= double(ts.xreglinear);
poly = xregCreateModel(@localpoly,ts);
poly= update(poly,beta(1:ts.order));
tsstat= getstatus(ts.xreglinear);
poly= set(poly,'status',tsstat(1:ts.order));