| Financial Derivatives Toolbox | ![]() |
Price cash flows by a set of zero curves
Syntax
Price = cfbyzero(RateSpec, CFlowAmounts, CFlowDates, Settle, Basis)
Arguments
RateSpec |
A structure encapsulating the properties of an interest rate structure. See intenvset for information on creating RateSpec. |
CFlowAmounts |
Number of instruments (NINST) by maximum number of cash flows (MOSTCFS) matrix with entries listing cash flow amounts corresponding to each date in CFlowDates. 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. |
CFlowDates |
NINST-by-MOSTCFS matrix of cash flow dates. Each entry contains the serial date of the corresponding cash flow in CFlowAmounts. |
Settle |
Settlement date on which the cash flows are priced. |
Basis | (Optional) Day-count basis of the bond. A vector of integers.0 = actual/actual (default), 1 = 30/360, 2 = actual/360, 3 = actual/365. |
Description
Price = cfbyzero(RateSpec, CFlowAmounts, CFlowDates, Settle, Basis)
computes Price, an NINST-by-NUMCURVES matrix of cash flows prices. Each column arises from one of the zero curves.
See Also
bondbyzero, fixedbyzero, floatbyzero, swapbyzero
| cfbyhjm | classfin | ![]() |