Main Content

getdatasamplesize

timeseries data sample size

Description

example

tsdatasize = getdatasamplesize(ts) returns the size of each data sample in a timeseries object ts.

Examples

collapse all

Create a timeseries object from a 24-by-3 array of data and display the size of each data sample.

load count.dat
ts = timeseries(count,[1:24]);
tsdatasize = getdatasamplesize(ts)
tsdatasize = 1×2

     1     3

Input Arguments

collapse all

Input timeseries, specified as a scalar.

Data Types: timeseries

See Also

Introduced before R2006a