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. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Data series extraction


ftse = extfield(tsobj,fieldnames)



Financial time series object


Data series to be extracted. A cell array of character vectors if a list of data series names (fieldnames) is supplied. A character vector if only one is wanted.


ftse = extfield(tsobj,fieldnames) extracts from tsobj the dates and data series specified by fieldnames into a new financial time series object ftse. ftse has all the dates in tsobj but contains a smaller number of data series.


extfield is identical to referencing a field in the object. For example,

ftse = extfield(fts, 'Close')

is the same as

ftse = fts.Close

This function is the complement of the function rmfield.

Introduced before R2006a

Was this topic helpful?