MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

State
end


methods (Access = protected)
function setupImpl(obj)
obj.State = zeros(length(obj.Numerator)-1,1);
end


function y = stepImpl(obj,u)
[y,obj.State] = filter(obj.Numerator,1,u,obj.State);
end


function resetImpl(obj)
obj.State = zeros(length(obj.Numerator)-1,1);
end
end
end


See Also


nargin


See Also
Free download pdf