rotate180.matrix function

Rotate a matrix by 180 degrees. Used for adjusting image plotting in R.