I am stuck with a problem and i don\'t know how to put this in a for loop. I need the hotizontal average of the next matrix:
1 2 3 4 5 5 4 3 2 1 3 2 1 4 5
This will compute and place ur values in a new matrix with the average in the last column.
double[][] Table = new double[dArray.length][dArray[0].length+1]; double sum, avg; for(int i = 0; i