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

    function m = setMaxNCenters(m, n)
%SETMAXNCENTERS Set the maximum number of centers for an H-RBF
%
%   M = SETMAXNCENTERS(M, N) sets the maximum number of centers that the
%   fit algorithm for the given H-RBF, M, will use to N. 
%
%   N must be a string or a cell-string with two elements.
%
%   See also XREGHYBRIDRBF/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);