powered by
Construct a block-diagonal matrix.
blockdiag(...)
Any number of square matrices making up the diagonal blocks of the matrix.
A block-diagonal matrix.
# NOT RUN { blockdiag(matrix(1, 2, 2), 2, matrix(3, 4, 4)) # }
Run the code above in your browser using DataLab