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

    function newssf = copy(ssf)
% SWEEPSETFILTER/COPY makes a deep copy of the sweepsetfilter, including the parent if it is a sweepset

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



% Make sure that newssf has the correct pointers if the input has a null pointer
newssf = create(ssf);

% If ssf is an original then duplicate the sweepset as well
if isOriginal(ssf)
	newssf.pSweepset = xregpointer(ssf.pSweepset.info);
end