# Revision history [back]

@ whatupmatt , as an alternative, you can do K[1, -6:] = ones_matrix(1,6) and K[1, 40:44] = ones_matrix(1,4) A warning: remember that in Python the first row of the matrix is row 0, so K[1,...] modifies the second row.

@ whatupmatt , as an alternative, you can do do

K[1, -6:] = ones_matrix(1,6)


and

K[1, 40:44] = ones_matrix(1,4)


A warning: remember that in Python the first row of the matrix is row 0, so K[1,...] modifies the second row.