www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@abstractmultirate2/loadobj.m

    function this = loadobj(s)
%LOADOBJ   Load this object.

%   Copyright 2005 The MathWorks, Inc.

this = feval(s.class);

for indx = 1:length(s.AllFDesign)
    hFDesign(indx) = copy(s.AllFDesign(indx));
end

this.AllFDesign = hFDesign;

dt = s.Response;

% Remove the current FDesign because this is carried over from the default
% constructor.
this.CurrentFDesign = [];

% Update the current FDesign by setting the design type.
if strcmpi(this.Response, dt)
    updatecurrentfdesign(this);
else
    this.Response = dt;
end

if isstruct(s)
    rcf = s.ratechangefactors;
else
    rcf = s.getratechangefactors;
end

setratechangefactors(this, rcf);


% [EOF]