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

    function Value = get(m, Property, varargin)
%GET

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



if nargin == 1
   Value = [{'rbfpart','linearmodpart','chosenorder','lambda'}'; get(m.xreglinear)];
else
   switch lower(Property)
   case 'rbfpart'
      Value=m.rbfpart;    
   case 'linearmodpart'
      Value = m.linearmodpart;  
   case 'chosenorder'
      Value = m.chosenorder;
   case 'centers'
      Value = get(m.rbfpart,'centers');
   case 'width'
      Value = get(m.rbfpart,'width');
   otherwise
      try
         Value=get(m.xreglinear,Property);
      catch
         try
            Value = m.(Property);
         catch
            error(message('mbc:xreghybridrbf:InvalidArgument1', Property));
         end
      end
   end   
end