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

    function value = get( m, property )
%GET   Implements the GET method for the XREGLOLIMOT object.
%
%   GET(M,'<property>') returns the value of the property for the XREGLOLIMOT 
%   model M.
%   GET(M) returns a list of GET'able properties.
%
%   See also XREGRBF/GET.

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

narginchk(1,2);

if nargin == 1,
    rv = get( m.xregrbf );
    value = { ...
            'BetaModels', ...
            'TrainingData', ...
            'NumberOfCenters', ...
            rv{:} }.';
    return
end

switch lower( property ),
case 'betamodels',
    value = m.betamodels;
case 'trainingdata',
    value = m.trainingdata;
case 'numberofcenters', 
    value = numel( m.betamodels );
otherwise,
    try
        value = get( m.xregrbf, property );
    catch
          error(message('mbc:xreglolimot:InvalidProperty', property));
    end
end

return

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|