%% Access Data Samples
% Create a timeseries object, and extract the second and third data samples.

ts = timeseries((1:5)');
tsdata = getdatasamples(ts,[2,3])

% Copyright 2012 The MathWorks, Inc.