This question is an addition to this one: Link to original question How can I implement in the code, that all rows should be "filled up" with 0 let's say up to column 6.
This is an example of how it should work.
V [18x1]: [6000, 6500, 5000, 8000, 15000, 15500, 16000, 6000, 4000, 16500, 14000, 400, 5000, 6000, 9000, 12000, 13000, 5000]
Matrix [3x4]:
1.row [8000 15000 15500 16000 0 0]
2.row [16500 14000 0 0 0 0]
3.row [9000 12000 13000 0 0 0]
See Question&Answers more detail:os