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

    function obj = reset(obj)
%RESET Mark candidate set as ready for re-generation
%
%   OBJ = RESET(OBJ) will set a candidateset back to a state where it needs
%   to have generate called on it.
%
%   See also: ISGENERATED, GENERATE.

%   Copyright 2007 The MathWorks, Inc.

if obj.UseScrambleCache
    if isempty(obj.ScrambleCache)
        % Put a pending scramble in the cache
        obj.ScrambleCache = obj.PointSet.ScrambleMethod;
    end
else
    % Immediately rescramble
    obj.PointSet = scramble(obj.PointSet, 'reapply'); 
end