# Maximum element and its position (row,column) of matrix

Can someone help me to get the maximum element of $m\times n$ matrix and corresponding row and column $(i,j)$?

• Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Szabolcs Apr 2 '15 at 1:32

Try Max[mat] and Position[mat, Max[mat]].
• I used mat variable as MatrixForm, so the Position function did not work, e.g., Max /@ mat; Position[mat, Max /@ mat]. Thanks @ Szabolcs. – Frey Apr 2 '15 at 2:34
• Yes, those tips help. I use Table form and it works well :) – Frey Apr 2 '15 at 2:43