in reply to Re: how to get average of matrices' elements?
in thread how to get average of matrices' elements?

Also, another way to avoid the "uninitialized variable" warning is to use the += operator.
instead of this: $m_avrg[$a][$b] = ($m_avrg[$a][$b] + $list[$a][$b]); use this: $m_avrg[$a][$b] += $list[$a][$b];