Function Reference
— Function File: z = cumtrapz (y)
— Function File: z = cumtrapz (x, y)
— Function File: z = cumtrapz (..., dim)

Cumulative numerical integration using trapezoidal method. cumtrapz (y) computes the cumulative integral of the y along the first non singleton dimension. If the argument x is omitted a equally spaced vector is assumed. cumtrapz (x, y) evaluates the cumulative integral with respect to x.

See also: trapz cumsum