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

    function ssf = freeallptr(ssf)
%FREEALLPTR Frees a sweepsetfilter and the underlying objects
%
%  SSF = FREEALLPTR(SSF)

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


% If ssf is an original then duplicate the sweepset as well
if isvalid(ssf.pSweepset) && isOriginal(ssf)
    freeptr(ssf.pSweepset);
end