integrate2D.m
SYNTAX: integral = integrate2D(x,y,z,xmin,xmax,ymin,ymax)
PURPOSE: Compute approximate integral of data defined over an x-y grid.
INPUT:
z = data over grid
x,y = x and y coordinates where data z is given
xmin,xmax = x limits of integration (must be inside defined x values)
(optional, default = min and max from x vector
ymin,ymax = y limits of integration (must be inside defined y values)
(optional, default = min and max from y vector
OUTPUT:
integral = value of integral
Dependencies