size

Number of dates and data series

Syntax

szfts = size(tsobj, dim)
[numRows, numCols] = size(tsobj)

Arguments

tsobj

Financial time series object.

dim

(Optional) A scalar that specifies the following dimension:

dim = 1 returns number of dates (rows).

dim = 2 returns number of data series (columns).

Description

szfts = size(tsobj) returns the number of dates (rows) and the number of data series (columns) in the financial time series object tsobj. The result is returned in the vector szfts, whose first element is the number of dates and second is the number of data series.

szfts = size(tsobj, dim) specifies the dimension you want to extract.

numRows returns a scalar representing the number of dates (rows).

numCols returns a scalar representing the number of data series (columns).

See Also

|

Was this topic helpful?