%% Median of Data Samples
% Create a timeseries object and compute the median of the data samples.

ts = timeseries((1:5)');
tsmedian = mean(ts)

% Copyright 2012 The MathWorks, Inc.