in reply to Re: how to get average of matrices' elements?in thread how to get average of matrices' elements?
instead of this: $m_avrg[$a][$b] = ($m_avrg[$a][$b] + $list[$a][$b]); use this: $m_avrg[$a][$b] += $list[$a][$b]; [download]