Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Income Toolbox   

liborduration - Duration of LIBOR-based interest-rate swap

Syntax

[PayFixDuration GetFixDuration] = liborduration(SwapFixRate, 
Tenor, Settle)

Arguments

SwapFixRate

Scalar or column vector of swap fixed rates in decimal.

Tenor

Scalar or column vector indicating life of the swap in years. Fractional numbers are rounded upward.

Settle

Scalar or column vector of settlement dates.

Description

[PayFixDuration GetFixDuration] = liborduration(SwapFixRate, Tenor, Settle) computes the duration of LIBOR-based interest-rate swaps.

PayFixDuration is the modified duration, in years, realized when entering pay-fix side of the swap.

GetFixDuration is the modified duration, in years, realized when entering receive-fix side of the swap.

Examples

Given the data

SwapFixRate = 0.0383;
Tenor = 7;
Settle = datenum('11-Oct-2002');

compute the swap durations.

[PayFixDuration GetFixDuration] = liborduration(SwapFixRate,... 
Tenor, Settle)

PayFixDuration =

   -4.7567

GetFixDuration =

    4.7567

See Also

liborfloat2fixed, liborprice

  


Free Interactive Computational Finance CD

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-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS