Financial Toolbox    
cfdur

Cash-flow duration and modified duration

Syntax

Arguments

CashFlow
A vector of real numbers.
Yield
Periodic yield. A scalar. Enter as a decimal fraction.

Description

[Duration, ModDuration] = cfdur(CashFlow, Yield) calculates the duration and modified duration of a cash flow in periods.

Examples

Given a cash flow of nine payments of $2.50 and a final payment $102.50, with a periodic yield of 2.5%

See Also

bndconvp, bndconvy, bnddurp, bnddury, cfconv


  cfdates cfport