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

    function n = privnports(this)
%PRIVNPORTS Number of input ports of the realizemdl model

%   Copyright 2007 The MathWorks, Inc.

n = 1; % Default
for k = 1:length(this.Stage)
    n = n + privnports(this.Stage(k))-1;
end

% [EOF]