FUNCTION REFERENCE

blkdiag

Assemble matrices into a block diagonal matrix.

Assemble matrices into a block diagonal matrix.

Syntax

B = blkdiag(A1,A2,...)

Example

blkdiag([1 2], 3)   % [1 2 0; 0 0 3]

Differences from MATLAB: Two-dimensional numeric, logical or character input; sparse input is not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.