www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregrbf/setMaxNCenters.m
function m = setMaxNCenters(m, n) %SETMAXNCENTERS Set the maximum number of centers for an RBF % % M = SETMAXNCENTERS(M, N) sets the maximum number of centers that the % fit algorithm for the given RBF, M, will use to N. % % N must be a string or a cell-string with two elements. % % See also XREGRBF/GETMAXNCENTERS. % Copyright 2005-2011 The MathWorks, Inc. om = getFitOpt(m); for name = {'MaxNCenters', 'MaxNumberCenters'} [om,nFound] = set(om,name{1},n); if nFound == 1 break end end m = setFitOpt(m,om);