This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getdatasamplesize

timeseries data sample size

Syntax

tsdatasize = getdatasamplesize(ts)

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