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

    function NL = nodelist(N)
%NODE Constructor for this class.

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

narginchk(0,1);

NL = filtgraph.nodelist;

if nargin > 0
    NL.nodeCount = N;
end

if  NL.nodeCount> 0
    for I = 1:NL.nodeCount
        X(I) = filtgraph.node('DUMMY');
        X(I).setindex(I);
    end
else
    X = [];
end

NL.nodes = X;
end