getParYields - Get par yields for input dates for IRDataCurve
Class
@IRDataCurve
Syntax
F = getparyields(CurveObj, InpDates)
F = getparyields(CurveObj, InpDates, 'Parameter1',
Value1, 'Parameter2', Value2, ...)
Arguments
| CurveObj | Interest-rate curve object that is constructed using IRDataCurve. |
| InpDates | Vector of input dates using MATLAB date format.
The input dates must be after the settle date. |
| Compounding | (Optional) Compounding values for the par yield rates: |
| Basis | (Optional) Day-count basis values for the par yield rates: |
Description
F = getparyields(CurveObj, InpDates,
'Parameter1', Value1, 'Parameter2', Value2, ...) returns
par yields for the input dates. You must enter the optional arguments
for Basis and Compounding as
parameter/value pairs.
Examples
Data = [2.09 2.47 2.71 3.12 3.43 3.85 4.57 4.58]/100;
Dates = daysadd(today,[360 2*360 3*360 5*360 7*360 10*360 20*360 30*360],1);
irdc = IRDataCurve('Zero',today,Dates,Data);
irdc.getParYields(today+30:30:today+720)ans =
0.0174
0.0179
0.0181
0.0185
0.0187
0.0191
0.0194
0.0195
0.0199
0.0202
0.0205
0.0208
0.0212
0.0215
0.0218
0.0221
0.0224
0.0228
0.0231
0.0233
0.0236
0.0239
0.0242
0.0245See Also
@IRDataCurve
 | getForwardRates | | getParYields |  |
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.