0
Basically what I want to do is C[i][j] = B[A[i][j]][i]
. In the case A
and B
are 2 arrays 5x5.
A formula é C[i,j] = B[A[i][j]][i] that is, C is the value of B[X][i], where X is the value of A[i][j]. Note that the values I have here in the matrix are within the range of possible [i] and [j], in the case of example 3x3 with i and j ranging from 0 to 2.
It is difficult to understand what you need. You could do an example of A and B values and put what should be C?
– Woss
Just a moment..
– Pedro
Do this by editing the question, please. Just below it is the [Edit] button. Use the button
{}
editor to properly format the codes.– Woss