matlab - Integrating Velocity Over a Complex 2-D Surface -
i'm using matlab calculate the average velocity in cross section of pipe integrating discrete velocity points on surface. points scattered in random pattern form circle (almost). i used scatteredinterpolant create function relating x , y v (velocity) in order create grid of interpolated values. f = scatteredinterpolant(x, y, v,'linear'); vq = f(xq,yq); % xq , yq set of query points the problem having trying calculate the surface area of function, in circular portion contains scatter points. the first way went using quad2d function. int = quad2d(@(x,y) f(x,y), min(x), max(x), min(y), max(y), 'maxfunevals', 100000); however gives incorrect takes area on rectangle , circle. now can define surface area circle in future have work more complex shapes want use points define boundary of scatter points. i'm doing through triangulation, using following command. dt = delaunaytriangulation(x,y); however have no idea how can incorporate these points ...