tsdata = getdatasamples(ts,ind)
returns the data of a timeseries object ts
corresponding to the indices in ind. The data in
tsdata corresponds to the time samples in
ts.time(ind).
Row or column indices, specified as a positive integer numeric scalar or
vector. ind represents column indices for column-oriented
data (ts.IsTimeFirst is true) and
represents row indices for row-oriented data
(ts.IsTimeFirst is false).