Construct cash flow instrument
InstSet = instcf(InstSet, CFlowAmounts,
[FieldList, ClassList, TypeString] = instcf
Instrument variable. This argument is specified only when adding cash flow instruments to an existing instrument set. See instget for more information on the InstSet variable.
Number of instruments (NINST) by maximum number of cash flows (MOSTCFS) matrix of cash flow amounts. Each row is a list of cash flow values for one instrument. If an instrument has fewer than MOSTCFS cash flows, the end of the row is padded with NaNs.
NINST-by-MOSTCFS matrix of cash flow dates. Each entry contains the date of the corresponding cash flow in CFlowAmounts.
Settlement date on which the cash flows are priced.
(Optional) Day-count basis of the instrument. A vector of integers.
For more information, see basis.
Only one data argument is required to create an instrument. Other arguments can be omitted or passed as empty matrices . Dates can be input as serial date numbers or date strings.
FieldList is a number of fields (NFIELDS)-by-1 cell array of strings listing the name of each data field for this instrument type.
ClassList is an NFIELDS-by-1 cell array of strings listing the data class of each field. The class determines how arguments are parsed. Valid strings are 'dble', 'date', and 'char'.
TypeString specifies the type of instrument
added; for example,
TypeString = 'CashFlow'.