Financial Time Series    
setfield

Set content of a specific field

Syntax

Description

setfield treats the contents of fields in a time series object (tsobj) as fields in a structure.

newfts = setfield(tsobj, field, V) sets the contents of the specified field to the value V. This is equivalent to the syntax S.field = V.

newfts = setfield(tsobj, field, {dates}, V) sets 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, e.g.,
'03/01/99::03/31/99'.

Example

See Also

chfield, fieldnames, getfield, isfield, rmfield


 rsindex size