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

    function simSetEvalParam(m,sys)
%SIMSETEVALPARAM

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


spline3x = m.xreg3xspline;

vars = {'poly_order', 'target', 'numknots', 'numcoeff', 'nfactors', 'knots'};
values = cell(6, 1);
values{1} = get(spline3x,'polyorder');
values{2} = gettarget(m);
values{3} = get(m,'numknots'); 
values{4} = size(spline3x,1);
values{5} = get(m, 'nfactors');
values{6} = get(m,'knots'); 

AddVariablesToUserdata(sys,vars,values);