Fill matrix with vector
Posted: Mon Feb 02, 2015 10:39 am
Is there a simple command I can place a rowvector(n) in the rows of a matrix(m,n) and appending the vector by a 0 for each row. To be more precise, I want to create a matrix
[a b c
0 a b
0 0 a]
from a vector [a b c].
Thanks a lot in advance.
[a b c
0 a b
0 0 a]
from a vector [a b c].
Thanks a lot in advance.