www.gusucode.com > signal 工具箱matlab源码程序 > signal/@dfilt/@singlefilterquantizer/latticearmabodyconnect.m
function [NL, PrevIPorts, PrevOPorts, NextIPorts, NextOPorts, mainparams]=latticearmabodyconnect(q,NL,H,mainparams) %LATTICEARMABODYCONNECT specifies the connection and quantization parameters in the %conceptual body stage % Author(s): Honglei Chen % Copyright 1988-2004 The MathWorks, Inc. % specify the qparam set(NL.nodes(1),'qparam','single'); set(NL.nodes(2),'qparam','single'); set(NL.nodes(3),'qparam','single'); set(NL.nodes(4),'qparam','single'); set(NL.nodes(6),'qparam','single'); set(NL.nodes(7),'qparam','single'); % specify the connection % NL.connect(source node, source port, dest node, dest port) % note that input and output are numbered separately NL.connect(1,1,3,1); NL.connect(2,1,1,2); NL.connect(3,1,4,1); NL.connect(5,1,2,1); NL.connect(5,1,4,2); NL.connect(6,1,7,1); % specify the inter-stage connection % nodeport(node, port) % since head represents the first layer, no previous input and previous % output ports PrevIPorts = [filtgraph.nodeport(5,1) filtgraph.nodeport(6,1)]; PrevOPorts = [filtgraph.nodeport(1,1) filtgraph.nodeport(7,1)]; NextIPorts = [filtgraph.nodeport(1,1) filtgraph.nodeport(7,2)]; NextOPorts = [filtgraph.nodeport(4,1) filtgraph.nodeport(4,1)];