This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

cfconv

Cash flow convexity

Syntax

CFlowConvexity = cfconv(CashFlow,Yield)

Description

example

CFlowConvexity = cfconv(CashFlow,Yield) returns the convexity of a cash flow in periods.

Examples

collapse all

This example shows how to return the convexity of a cash flow, given a cash flow of nine payments of $2.50 and a final payment $102.50, with a periodic yield of 2.5%.

CashFlow = [2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 102.5];

Convex = cfconv(CashFlow, 0.025)
Convex = 90.4493

Input Arguments

collapse all

Cash flow, specified as a vector of real numbers.

Data Types: double

Periodic yield, specified as a scalar decimal.

Data Types: double

Output Arguments

collapse all

Convexity returned as a scalar.

Introduced before R2006a