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
fillrows
Search Tools->
contents
reference
index
search
Filling A Matrix With A Row Vector
Syntax
fillrows(
v
,
n
)
See Also
fillcols
,
fill
Description
Returns the matrix that has
n
rows, each of which contains the vector
v
, where
n
is an integer scalar and
v
is a row vector. The return value has the same type and column dimension as
v
, and its row dimension is equal to
n
.
Example
fillrows([1, 2, 3], 3)
returns
{
[ 1 , 2 , 3 ]
[ 1 , 2 , 3 ]
[ 1 , 2 , 3 ]
}