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

    function obj = removeFilter(obj, filtersToRemove)
%REMOVEFILTER

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



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