| Financial Time Series | ![]() |
Syntax
ftse = extfield(tsobj, fieldnames)
Arguments
tsobj |
Financial time series object |
fieldnames |
Data series to be extracted. A cell array if a list of data series names (field names) is supplied. A string if only one is wanted. |
Description
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.
Example
extfield is identical to referencing a field in the object. For example
ftse = extfield(fts, 'Close')
ftse = fts.Close
This function is the complement of the function rmfield.
See Also
| exp | fieldnames | ![]() |