matplace |

Place submatrix in matrix.

Place matrix object at a specified location in a matrix.

Syntax

matplace(m1, m2[, n1, n2])

Places the matrix object m2 into m1 at row n1 and column n2. The sizes of the two matrices do not matter, as long as m1 is large enough to contain all of m2 with the upper left cell of m2 placed at row n1 and column n2.

Examples

matrix(100,5) m1

matrix(100,2) m2

matplace(m1, m2, 1, 1)

Cross-references