timeseries

Methods

Method Reference: timeseries.getdatasamples

timeseries: data = getdatasamples (ts, ind)

Return the data of selected samples.

data = getdatasamples (ts, ind) returns the data of the samples ind of the series ts, in the order given, repeats included: the rows ind of Data for a series whose time runs down its first dimension, the slices ind along the last dimension otherwise. ind is a vector of positive integers not exceeding Length, or a logical mask no longer than Length; [] returns [].

See also: timeseries.getsamples, timeseries.getdatasamplesize

Source Code: timeseries

getdatasamples returns the data of the samples asked for, in the order asked, repeats included.

 ts = timeseries ([10; 20; 30; 40; 50], 'Name', 'level');
 ts.Data'
ans =

   10   20   30   40   50
 getdatasamples (ts, [4, 1, 1])'
ans =

   40   10   10