Skip to content

dblquad

general · scripts/general/dblquad.m

: q = dblquad (f, xa, xb, ya, yb)
: q = dblquad (f, xa, xb, ya, yb, tol, quadf, …)

Integrate f (x, y) over the rectangle [xa, xb] x [ya, yb].

f is called with a vector x and a scalar y and must return an array of the same size as x. tol is the absolute tolerance (default 1e-6). quadf is the one-dimensional integrator called as quadf (g, a, b, tol); the default is an adaptive Gauss-Kronrod rule. Further arguments are passed to f after x and y.