Place vector in row of a matrix.
Place a column or rowvector object in a specified row of a matrix.
Syntax
rowplace(m, r, n)
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