Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

blkdiag

Block-diagonal concatenation of models

Syntax

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

Description

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

[sys10..00sys2.::..00..0sysN]

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.

Introduced in R2009a

Was this topic helpful?