Place vector in column of a matrix.
Place a column or rowvector object in a specified column of a matrix.
Syntax
colplace(m, r, n)
Places the column vector or rowvector v into the matrix m at column n. The number of rows of m and v must match, and the destination column must already exist within m.
Examples
matrix m1 = @mnrnd(30, 5)
vector v1 = @mnrnd(30)
colplace(m1, v1, 3)
The third column of M1 will be set equal to the vector V1.
Cross-references