www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepsetfilter/private/updateDefineTests.m

    function [obj, ss] = updateDefineTests(obj, ss)
%UPDATEDEFINETESTS Update test definitions
%
%  [SSF, SS] = UPDATEDEFINETESTS(SSF, SS) updates the sweepsetfilter's test
%  definitions and returns the altered sweepset.  If a sweepset is not
%  provided as input then one will be generated from the sweepsetfilter.

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


f = getFlags;

% Have we got a current copy of the sweepset
if nargin < 2
    ss = ApplyObject(obj, [f.APPLY_DATA f.APPLY_VARS f.APPLY_FILT]);
end

% Update the current copy of the sweepset
ss = ApplyObject(obj, f.APPLY_TEST, ss);

% Now cascade the update to the tests
[obj, ss] = updateSweepVariables(obj, ss);