04-29-2010 01:13 AM
Hi... I ve one matrix of order (m*n). I need to calculate the mean value of this matrix. How to do this?
let we consider the matrix as 4x4.(Row=Column=4) The resultant matrix i.e mean value matrix is 1x4(Row=4,Column=1). To read the row value simultaneously in order to calculte the mean value thro row.... ? please help me out
Example:
Matrix A=1 2 3 4
5 6 7 8
1 3 5 7
2 4 6 8.
Mean value thro row would be: 10/4 [ (1+2+3+4)/4
26/4 [ (5+6+7+8) /4...Like this i ve to do..
Please help me out
04-29-2010 01:53 AM
Feed matrix to a for loop, use Add array elements, divide it by N from loop. Out from loop is your answer.
/Y
04-29-2010 02:00 AM
04-29-2010 03:16 AM
04-29-2010 04:01 AM