Question: tricky matrix code

well am confuse because of my scheme which is 

(1-3r)U[i-1,j+1] +2(2-3r)U[i,j+1] +(1-3r)U[i+1,j+1]= (1+3r)U[i-1,j] +2(2+3r)U[i,j] +(1+3r)U[i+1,j]

now problem here is coefficients with U.. they are not similar on both sides so please can u let me know code about here how can i generate matrix of oder n x n using this scheme...thanks

Please Wait...