I am trying to find the largest and second largest number in each row and column. The largest numbers are easy, but how do I find the second largest?
After I found them I also want to calculate the difference of the two largest numbers in each row and column.
c = {{36, 32, 33, 19}, {10, 8, 7, 20}, {12, 17, 16, 29}, {23, 15, 16,
28}};
Max /@ c
Max /@ Transpose[c]