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
Perform Block-Diagonal Concatenation
Perform block-diagonal concatenation of a transfer function model and a state-space model.
Create the SISO continuous-time transfer function model, 1/s
.
sys1 = tf(1,[1 0]);
Create a SISO continuous-time state-space model with state-space matrices 1,2,3, and 4.
sys2 = ss(1,2,3,4);
Concatenate sys1
, a SISO static gain system, and sys2
. The resulting model is a 3-input, 3-output state-space model.
sys = blkdiag(sys1,10,sys2)
sys = 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 state-space model.
Alternatively, use the append
command.
sys = append(sys1,10,sys2);
Version History
Introduced in R2009a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)