m = median(X)
m = median(X), where
Xis a vector, is the median value of the elements in vector
X. For matrices,
median(X)is a row vector containing the median value of each column. Since
medianis implemented using
sort, it can require long execution times for large matrices.
(c) Copyright 1994 by The MathWorks, Inc.