Input Arguments

CashFlow

A vector or matrix of cash flows. If CashFlow is
a matrix, each column represents a separate stream of cash flows whose
internal rate of return is calculated. The first cash flow of each
stream is the initial investment, entered as a negative number.

CashFlowDates

(Required) CashFlowDates is specified as
serial date numbers, date character vectors, or datetime arrays. The
size of the input date numbers for CashFlowDates must
the same size as CashFlow, Each column of CashFlowDate represents
the dates of the corresponding column of CashFlow.

Guess

The initial estimate of the internal rate of return. Guess is
a scalar applied to all streams, or a vector the same length as the
number of streams.

Default: 0.1 (10%)

MaxIterations

The positive integer number of iterations used by Newton's method
to solve the internal rate of return. MaxIterations is
a scalar applied to all streams, or a vector the same length as the
number of streams.