Learn R Programming

lava (version 1.8.0)

blockdiag: Combine matrices to block diagonal structure

Description

Combine matrices to block diagonal structure

Usage

blockdiag(x, ..., pad = 0)

Arguments

x

Matrix

...

Additional matrices

pad

Vyalue outside block-diagonal

Author

Klaus K. Holst

Examples

Run this code
A <- diag(3)+1
blockdiag(A,A,A,pad=NA)

Run the code above in your browser using DataLab