FUNCTION REFERENCE
quad2d
Numerically integrate over a planar region.
Numerically integrate over a planar region.
Syntax
q = quad2d(fun, a, b, c, d)Syntax
[q, errbnd] = quad2d(fun, a, b, c, d, name, value, ...)fun(x, y) must accept arrays. c and d are numbers or functions of x. Options are 'AbsTol' (1e-10), 'RelTol' (1e-6), 'MaxFunEvals' (2000), 'Singular' (true) and 'FailurePlot' (ignored).
Example
quad2d(@(x, y) x.*y, 0, 1, 0, 1) % 0.2500Differences from MATLAB: The last digits of the tiled sum can differ from MATLAB's. Complex integrands are not supported yet. Reaching MaxFunEvals gives no warning, as in MATLAB.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.