I have searched the net trying to find an answer to this problem I have.
I have an array much like the following
A = [2 4 6 8 ; 3 5 7 9 ; 1 4 6 9] r
MedianMap = (A > Rmedian'*ones(1,4))+ ( A > ones(3,1)*Cmedian) -1