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.
Fill matrix with vector
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13585
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Fill matrix with vector
I think I would create a matrix that has too many columns, then use matplace to insert the row vector in full one row at a time. Then use matrix.dropcol to lop off the extra columns.
Who is online
Users browsing this forum: No registered users and 2 guests
