Syntax: rowplace(m, r, n)
Argument 1: matrix, m
Argument 2: vector or rowvector, r
Argument 3: integer
Places the column vector or rowvector r into the matrix m at row n. The number of columns in m and r must match, and row n must exist within m.
Examples
matrix m1 = @mnrnd(30, 5)
matrix r1 = @mnrnd(1, 5)
rowplace(m1, r1, 4)
places R1 in the fourth row of M1.
Cross-references