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

    function obj = removeSweepFilter(obj, filtersToRemove)
%SWEEPSETFILTER/REMOVEFILTER removes some sweep filters

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



% Logical true matrix of length obj.sweepFilters
lFilters = true(length(obj.sweepFilters), 1);
% Set the filters to remove to be 0
lFilters(filtersToRemove) = false;
% Update the sweep filters field
obj.sweepFilters = obj.sweepFilters(lFilters);
% Update the object without re-evaluating filters
obj = updateSweepFilters(obj, [], []);
% Tell everyone that the sweep filters have changed
queueEvent(obj, 'ssfSweepFiltersChanged');