i’m trying to create a diagonal matrix with 390 rows and 2340 columns, but in the diagonal i need to have a vector of 1, (rep(1,6))
for exaple these should be the first two rows
1111110………………………..0
0000001111110…………………..0
thanks
i don’t know how to do it
New contributor
marco.23 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.