www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@cset_pointset/get.m
function out = get(obj,param) %GET Get candidate set parameters % % DATA=GET(OBJ,PARAM) % % PARAM may be one of: % % Limits % N % Pointset % CacheScramble % Scramble % Copyright 2007 The MathWorks, Inc. switch lower(param) case 'limits' out = num2cell(limits(obj.candidateset),2)'; case 'n' out = obj.NPoints; case 'pointset' out = obj.PointSet; case 'cachescramble' out = obj.UseScrambleCache; case 'scramble' if ~isempty(obj.ScrambleCache) out = obj.ScrambleCache.Type; else S = obj.PointSet.ScrambleMethod; if ~isempty(S) out = S.Type; else out = ''; end end end