Documentation Center

  • Trials
  • Product Updates

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

| | |

Was this topic helpful?