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).
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.