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

    function str = assoc2str(DG)
%ASSOC2STR Dumps the association list indices into a string

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

narginchk(1,1);

AL = DG.assocList;

str = '';

for I = 1:length(AL)
    for J = 1:length(AL(I).list)
        str = [str sprintf(' %d -> %d;\n', AL(I).index,AL(I).list(J))];
    end
end