www.gusucode.com > signal 工具箱matlab源码程序 > signal/@filtgraph/@block/setnumoutports.m

    function B = setnumoutports(Bi,N)
%add outports to the block

%   Author(s): Roshan R Rammohan
%   Copyright 1988-2004 The MathWorks, Inc.

narginchk(1,2);

if nargin > 0
    B=Bi;
end

if nargin > 1
    for I = 1:N
        X(I) = filtgraph.outport(B.nodeIndex,I);
    end
    B.outport = X;
end