Contents
Previous
Next
Subchapters
Current Chapters->
identity
zeros
ones
fill
fillcols
fillrows
seq
toeplitz
vander
hankel
hilb
invhilb
diag
tril
triu
novalue
Parent Chapters->
Omatrix6
elementary
specialmatrices
fillcols
Search Tools->
contents
reference
index
search
Filling A Matrix With A Column Vector
Syntax
fillcols(
v
,
n
)
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 ]
}