timeseries

Methods

Method Reference: timeseries.median

timeseries: v = median (ts)

timeseries: v = median (ts, name, value, …)

Return the median of a series over time.

v = median (ts) returns the median of each data element over time, so v has the size of one sample; with 'time' weighting it is the time-weighted median. v keeps the class of the data, and is [] for a series with no samples. Where a value is left without samples it is NaN, and v is then double, as integer and logical classes hold no NaN.

The options, and where MATLAB differs, are given under timeseries.mean.

See also: timeseries.mean, timeseries.mode, timeseries.iqr

Source Code: timeseries