www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@testplansweepsetfilter/private/ApplyObject.m
function out = ApplyObject(obj, out) %APPLYOBJECT Apply the filter to the underlying object % % out = APPLYOBJECT(obj, flags) where flags is a bitwise scalar which is % used to turn on and off certain operations see the private function % getflags for the flag values. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin < 2 out = sweepset(obj.sweepsetfilter); end if ~isempty(obj.excludedData) OKind = ~ismember(getSweepGuids(out), obj.excludedData); % Note that if out has no tests defined (zero tests) then OKind will be % empty and remove all records from the data - this isn't desired behaviour % and should be caught if ~isempty(OKind) && ~all(OKind) % Only pass on those data in the list of selectedGUIDs out = out(:, :, OKind); end end