Given a matrix named Matr below;
Matr = 0 0 0 0 1 0 0 0 2 0 0 1 1 1
How can I find the number of column and row form beginning of row to only row 6?
The result should be
[3 1 5 1 6 2]
Best Answer