quads

Trapezoidal rule quadrature (numerical integration)

Syntax

   q = quads(x,Y)

Arguments

input

   x          vector of evaluation points
   Y          matrix of values corresponding to x

output

   q          vector of quadratures

Description

A simple trapezoidal rule quadrature routine (cf. trapz). Integrate each column of matrix Y assumed evaluated at points in vector x.

See also

trapz | quadsr | smvgc_to_mvgc