| Contents | Index |
F = getForwardRates(CurveObj, InpDates) F = getforwardrates(CurveObj, InpDates, 'Parameter1', Value1, 'Parameter2', Value2, ...)
| CurveObj | Interest-rate curve object that is constructed using IRFunctionCurve. |
| InpDates | Vector of input dates using MATLAB date format. The input dates must be after the settle date. |
| Compounding | (Optional) Scalar that sets the compounding frequency per year for the forward rates are:
|
| Basis | (Optional) Day-count basis for the forward rates:
For more information, see basis. |
F = getForwardRates(CurveObj, InpDates, 'Parameter1', Value1, 'Parameter2', Value2, ...) returns forward rates for the input dates. You must enter the optional arguments for Basis and Compounding as parameter/value pairs.
irfc = IRFunctionCurve('Forward',today,@(t) polyval([-0.0001 0.003 0.02],t));
irfc.getForwardRates(today+30:30:today+720)
ans =
0.0202
0.0205
0.0207
0.0210
0.0212
0.0215
0.0217
0.0219
0.0222
0.0224
0.0226
0.0229
0.0231
0.0233
0.0235
0.0238
0.0240
0.0242
0.0244
0.0247
0.0249
0.0251
0.0253
0.0255
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |