Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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).

Introduced before R2006a

Was this topic helpful?