Add new comment

Try running the code all together. There is no matrix y in the code, so I'm not sure why you're getting that error. Could you be more specific about where you're getting the error? To be clear, the matrix is m and y is a local variable.