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

    function S = getstates(Hm,S)
%GETSTATES Overloaded get for the States property.

% This should be a private method

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

Scir = Hm.HiddenStates;

% Circular -> Linear
tapIndex = Hm.tapIndex+1; %1-based indexing
S = [Scir(tapIndex+1:end,:); Scir(1:tapIndex-1,:)];