Skip to Main Content Skip to Search
Product Documentation

blkdiag - Block-diagonal concatenation of models

Syntax

sys = blkdiag(sys1,sys2,...,sysN)

Description

sys = blkdiag(sys1,sys2,...,sysN) produces the aggregate system

blkdiag is equivalent to append.

Examples

The commands

sys1 = tf(1,[1 0]);
sys2 = ss(1,2,3,4);
sys = blkdiag(sys1,10,sys2)

produce the state-space model

a = 
       x1  x2
   x1   0   0
   x2   0   1
 
b = 
       u1  u2  u3
   x1   1   0   0
   x2   0   0   2
 
c = 
       x1  x2
   y1   1   0
   y2   0   0
   y3   0   3
 
d = 
       u1  u2  u3
   y1   0   0   0
   y2   0  10   0
   y3   0   0   4
 
Continuous-time model.

See Also

append | feedback | parallel | series

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS