MATLAB: Median of n*n

MATLABmedian

I have an n*n and would like to find the medianof the entire set n*n not of the individual rows or coloumns as can be found by:
median(A)
or
median(A,2)
etc..

Best Answer

median(A(:))
When you are working in MATLAB, get used to the idea that you can reshape a matrix to perform some operation.