www.gusucode.com > signal 工具箱matlab源码程序 > signal/@dfilt/@latticemamin/thissetstates.m

    function S = thissetstates(Hd,S)
%THISSETSTATES Overloaded set for the States property.

% This should be a private method

%   Author: R. Losada
%   Copyright 1988-2003 The MathWorks, Inc.

if isempty(S),
    S = [nullstate1(Hd.filterquantizer);nullstate1(Hd.filterquantizer)];
else
    % Check data type, quantize if needed
    S = validatestates(Hd.filterquantizer, S);
    S = [S;zeros(2,size(S,2))];
end

Hd.HiddenStates = S;
S = [];