# median

## Purpose

Median value of vectors and matrices.

## Synopsis

    m = median(X)

## Description

`m = median(X)`, where `X` is 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 `median` is implemented using `sort`, it can require long execution times for large matrices.

## See Also

    corrcoef, cov, mean, std

(c) Copyright 1994 by The MathWorks, Inc.