answered 12 years ago
You might want to combine your variables into a tuple of tuples, or into a dictionary, and write
phi[j-1][n+1]
or
phi[j-1,n+1]