主要内容

getDiscountactors.

获取输入日期的折扣因子伊丹科尔卫星

句法

f = getDiscountFactors(Curveobj,Inpdates)

争论

curveobj.

使用的利率曲线对象伊丹科尔卫星

inpdates.

使用matlab的输入日期向量®日期格式。输入日期必须在结核日期之后。

描述

f = getDiscountFactors(Curveobj,Inpdates)返回输入日期的折扣因子。

例子

全部收缩

此示例显示如何获得输入日期的折扣因子伊丹科尔卫星

curvesettle =数据抑制('2016年3月2日');数据= [2.09 2.47 2.71 3.12 3.43 3.85 4.57 4.58 4.58] / 100;日期= datemnth(Curvesettle,12 * [1 2 3 5 7 10 20 30]);IRDC = Irdatacurve('零',curvesettle,日期,数据);GetDiscountFactors(IRDC,Curvesettle + 30:30:Curvesettle + 720)
ans =.24×10.9986 0.9971 0.9956 0.9940 0.9924 0.9907 0.9890 0.9873 0.9855 0.9836⋮
在R2008B中介绍