Products & Services Industries Academia Support User Community Company

Learn more about Control System Toolbox   

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. Specify each signs as + or - in the string SIGNS. For example, s = sumblk('e','r','y','+-') specifies the relationship e = r - y.

Input Arguments

Output Arguments

Examples

Example 1

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 2.

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

Example 2

Specify the summing junction e = r - y for vectors of length 3.

ej = strseq('e',1:3); %{'e1';'e2';'e3'}
rj = strseq('r',1:3); %{'r1';'r2';'r3'}
yj = strseq('y',1:3); 
s = sumblk(ej,rj,yj,'+-');

See Also

connect, series, parallel, strseq

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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