Solved
The matrix function always starts at 0,0, so you get a divide by zero. You would also end up with a very large matrix: more than 7 million elements.
Use the CreateMesh function instead. It is designed for exactly this.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

