| Fixed-Income Toolbox™ | ![]() |
[FixedSpec, ForwardDates, ForwardRates] = liborfloat2fixed(ThreeMonthRates, Settle, Tenor, StartDate, Interpolation, ConvexAdj, RateParam, InArrears, Sigma, FixedCompound, FixedBasis)
[FixedSpec, ForwardDates, ForwardRates] = liborfloat2fixed(ThreeMonthRates, Settle, Tenor, StartDate, Interpolation, ConvexAdj, RateParam, InArrears, Sigma, FixedCompound, FixedBasis) computes forward rates, dates, and the swap fixed rate.
FixedSpec specifies the structure of the fixed-rate side of the swap:
Coupon: Par-swap rate
Settle: Start date
Maturity: End date
Period: Frequency of payment
Basis: Accrual basis
ForwardDates are dates corresponding to ForwardRates (all third Wednesdays of the month, spread 3 months apart). The first element is the third Wednesday immediately after Settle.
ForwardRates are forward rates corresponding to the forward dates, quarterly compounded, and on the actual/360 basis.
Note To preserve input integrity, Tenor is rounded upward to the closest integer. Currently traded tenors are 2, 5, and 10 years. |
The function assumes that floating-rate observations occur quarterly on the third Wednesday of a delivery month. The first delivery month is the month of the first third Wednesday after Settle. Floating-side payments occur on the third-month anniversaries of observation dates.
Use the supplied EDdata.xls file as input to a liborfloat2fixed computation.
[EDFutData, textdata] = xlsread('EDdata.xls');
Settle = datenum('15-Oct-2002');
Tenor = 2;
[FixedSpec, ForwardDates, ForwardRates] =...
liborfloat2fixed(EDFutData, Settle, Tenor)
FixedSpec =
Coupon: 0.0222
Settle: '16-Oct-2002'
Maturity: '16-Oct-2004'
Period: 4
Basis: 1
ForwardDates =
731505
731596
731687
731778
731869
731967
732058
732149
ForwardRates =
0.0177
0.0166
0.0170
0.0188
0.0214
0.0248
0.0279
0.0305
![]() | liborduration | liborprice | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |