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

    function out=get(obj,param)
% GET Get candidate set parameters
%
%   DATA=GET(OBJ,PARAM)
%
%   PARAM may be one of:
%
%       Limits
%       CostMethod
%       OptimMethod
%       N
%       doRecalc
%       showgui
%       stratifyLevels
%       symmetric
%

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



% Created 1/11/2000


switch lower(param)
case 'limits'
   out=num2cell(limits(obj.candidateset),2)';
case 'costmethod'
   out=obj.alg;
case 'optimmethod'
   out=obj.optimalg;
case 'n'
   out=obj.N;
case 'dorecalc'
   out=obj.doRecalc;
case 'showgui'
   out=obj.guiflag;
case 'stratifylevels'
   out=obj.stratify;
case 'symmetric'
   out=obj.symmetry;
case 'exactlevels'
   out=obj.stratify_levels;
end
return