Monday 15 June 2015

arrays - Get values of matrix -


I have computed a lot with the matrix and as a result I get 2x1 matrix.
If I use Matrix Print class prints this value
Still I want to save values ​​in two variables, but if I use class matrix .get (int m, int n), then this gives an ArrayOutOfBound exception.
I hope someone is the answer to my problem.

Actually it is difficult to tell without seeing the code, but are you sure your matrix dimension is correct? To wit. Could it be 1x2 instead of 2x1? Try switching to the gain method and see what happens one more thing to check: Does your matrix package use 1-indexing or 0-indexing? To wit. Is the first row / column number 0 or 1?

No comments:

Post a Comment