MATLAB Function Reference | ![]() ![]() |
Construct a block diagonal matrix from input arguments
Syntax
Description
out = blkdiag(a,b,c,d,...)
, where a
, b
, c
, d
, ... are matrices, outputs a block diagonal matrix of the form
The input matrices do not have to be square, nor do they have to be of equal size.
Note
blkdiag works not only for matrices, but for any MATLAB objects that support horzcat and vertcat operations.
|
See Also
![]() | blanks | box | ![]() |