| Control System Toolbox™ | ![]() |
S = sumblk(OUTPUT, INPUT1,...,INPUTN)
S = sumblk(OUTPUTNAME,INPUT1,...,INPUTN,SIGNS)
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.
OUTPUT: Output of the summing junction.
INPUT1,...,INPUTN: Inputs to the summing junction.
Note The output signal name(s) OUTPUT and input signal name(s) INPUT1,...,INPUTN are specified as strings for scalar-valued signals, and commensurate cell arrays of strings for vector-valued signals. |
S: Transfer function for the summing junction.
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'})![]() | stepplot | tf | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |