Contents Previous Next Subchapters

Filling A Matrix With A Column Vector
Syntax fillcols(vn)
See Also fillrows , fill

Description
Returns the matrix that has n columns, each of which contains the vector v, where n is an integer scalar and v is a column vector. The return value has the same type and row dimension as v, and its column dimension is equal to n.

Example
     fillcols({1, 2, 3}, 3)
returns
     {
     [ 1 , 1 , 1 ]
     [ 2 , 2 , 2 ]
     [ 3 , 3 , 3 ]
     }