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

    function val=reorder(m);
% xreg3xspline/REORDER

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




o3= reorder(m.cubic);
i=m.splinevar ;
o3(o3>=i)= o3(o3>=i)+1;
% insert spline variable in correct position
val = [i o3];