zero2disc
Discount curve given zero curve
Syntax
Description
[
returns a discount curve given a zero curve and its maturity dates. If either inputs
for or areDiscRates
,CurveDates
] = zero2disc(ZeroRates
,CurveDates
,Settle
)CurveDates
Settle
a datetime
array, CurveDates
is returned as a datetime array. Otherwise,
CurveDates
is returned as a serial date number. Use the
function datetime
to convert serial date
numbers to formatted datetime arrays. The DiscRates
output is the
same for any of these input data types.
[
adds optional name-value pair argumentsDiscRates
,CurveDates
] = zero2disc(___,Name,Value
)