mean, max, min in a 2d matrxi
i need helping finding the mean maximum, and minimum values for a two d matrix, yes i know this may be simple problem but i am not the best coder in the world i am stuck, so what i have so far is i am reading in an 2d matrix, which works perfectly and i need to find the maximum mean and minimum value i have an understanding on how to do this on a one d matrix but no a 2d matrix
here is what i have so far,i read in the two d matrix and use two for loops to go through the rows and colloms
[CODEor(r=0; r < no_of_rows; r++) {
for(c=0; c < no_of_cols; c++) {
}
}][/CODE]
what two do next i am lost, yes i do know what a mean value is, and i know that i need to read in every value from the no_of_row and no_of_cols and divide by the total number in each row and collum i also know i should probably have a variable set to zero and have it check each value in row the and collum keeping the bigger value but how to do that in software i am lost
thanks for the help
}
}