I want to set the last 7 columns in the given matrix. Here is the code I used
temp = mat('[6 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 2 0 0 0 4; 0 3 0 0 0 0 0 3 0 0]')
m,n = temp.shape
for i in range(3,n):
temp[0][i] = 0.0
print temp
It gives an error "index out of bounds". Can anybody point what's wrong?