I have a solution list as below from solving a linear equation system:
w[2, 2] -> 0.0000183294,
w[2, 3] -> 0.0000296603,
w[2, 4] -> 0.0000233449,
w[3, 2] -> 0.0000230831,
When I call, for example: w[3,2]
I get w[3,2]
as output instead of 0.0000230831
.
How can I assign these answers to a 2D array named so W[i,j]
such that I can call them by their indices?