www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregnnet/updateallparameters.m
function m= updateallparameters(m,b) %UPDATEALLPARAMETERS update all parameters for xregrbf % % b= [nnparams,lambda]; % Copyright 2014 The MathWorks, Inc. and Ford Global Technologies, Inc. if length(b)==numParams(m) p = b; m.lambda = 0; else p = b(1:end-1); m.lambda = b(end); end m = update(m,p);