www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xreglolimot/simSetEvalParam.m
function simSetEvalParam(m,sys) %XREGLOLIMOT\SIMSETEVALPARAM % Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc. vars = {'center','width','beta','polycoeff'}; % Need to remove terms which have been taken out by stepwise termsIn = find(Terms(m)); center = get(m, 'centers'); % center = center(termsIn,:); beta = double(m); beta = beta(termsIn); width = get(m, 'width'); if size( width, 1 ) > 1, width = width(termsIn,:); end nC = get(m, 'numberofcenters'); nR = length(beta)/nC; % Centers values{1} = center; values{2} = width.^2; values{3} = beta; values{4} = reshape(beta, [nR nC]); AddVariablesToUserdata(sys,vars,values); % Ensure that the correct stuff for the cubic evaluation is set up simSetEvalParam(m.betamodels{1}, sys);