sumblk - Specify summing junctions in name-based interconnections

Syntax

S = sumblk(OUTPUT, INPUT1,...,INPUTN)
S = sumblk(OUTPUTNAME,INPUT1,...,INPUTN,SIGNS)

Description

S = sumblk(OUTPUT, INPUT1,...,INPUTN) returns the transfer function S for the summing junction OUTPUT= INPUT1 + ...+ INPUTN.

S = sumblk(OUTPUTNAME,INPUT1,...,INPUTN,SIGNS) further specifies a sign for each input signal. For example, s = sumblk('e','r','y','+-') specifies the relationship e = r - y. You can use sumblk in conjunction with connect to quickly and reliably connect LTI models and derive aggregate models for block diagrams.

Input Arguments

Output Arguments

Examples

Specify the summing junction u = u1 + u2 + u3.

s = sumblk('u','u1','u2','u3')

Similarly, you can specify the summing junction v = u + d where u,d,v are vector-valued signals of length two.

s = sumblk({'v1','v2'},{'u1','u2'},{'d1','d2'})

See Also

connect, series, parallel,

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS