Section: Numerical Methods
[z] = cumtrapz(y)
for a unit integration of |y|. If |y| is a matrix, m must be equal to length(x) (e.g.: y must have the same number of rows as x has elements). In this case, integrals are taken for each row, returned in a resulting vector z of dimension (1,n)