Financial Time Series | ![]() ![]() |
Get content of a specific field
Syntax
fieldval = getfield(tsobj, field) fieldval = getfield(tsobj, field, {dates})
Arguments
tsobj |
Financial time series object |
|
Field name within tsobj |
dates |
Date range |
Description
getfield
treats the contents of a financial times series object tsobj
as fields in a structure.
fieldval = getfield(tsobj, field)
returns the contents of the specified field. This is equivalent to the syntax fieldval =
tsobj.field
.
fieldval = getfield(tsobj, field, {dates})
returns the contents of the specified field for the specified dates. dates
can be individual cells of date strings or a cell of a date string range using the ::
operator such as '03/01/99::03/31/99'
.
See Also
chfield
, fieldnames
, isfield
, rmfield
, setfield
![]() | ftsbound | getnameidx | ![]() |