Member of the statistics class.
c = median(a)
Computes the median value.
| Name | Description | ||||
| a | Specifies a vector or matrix. | ||||
| b | Specifies the dimension of a across which to compute the median if a is a matrix. b is a scalar that accepts the following values.
|
| Name | Description |
| c | Returns the median of a. If a is a vector, c returns the median value of all elements in a. If a is a matrix, c returns a row vector of column-wise medians or a column vector of row-wise medians. c is a scalar or vector. |
A = [1:1:15]
C = median(A)