in reply to how to get average of matrices' elements?

You're dividing m_avrg by 4 once per file. Move the averaging outside the file loop.
  • Comment on Re: how to get average of matrices' elements?