Syntax: colplace(m, v, n)
Argument 1: matrix, m
Argument 2: vector or rowvector, v
Argument 3: integer, 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