Since blinks is a matrix, you need to give both indexes while accessing any row and column. Since that would be the correct syntax.
So if you want to update the first row, you can use below
Similarly for last row you can use
[end+1] will through an error because you are trying to access memory which is not allocated. end means last index in that dimension.