Path: news.mathworks.com!not-for-mail
From: "Doug Hull" <hull@mathworks.SPAMPROOFcom>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Calculating the volume under a non-gridded non-uniform surface
Date: Wed, 12 Aug 2009 19:13:20 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 10
Message-ID: <h5v48g$2ta$1@fred.mathworks.com>
References: <h5v2g7$8ba$1@fred.mathworks.com>
Reply-To: "Doug Hull" <hull@mathworks.SPAMPROOFcom>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250104400 2986 172.30.248.38 (12 Aug 2009 19:13:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Aug 2009 19:13:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869436
Xref: news.mathworks.com comp.soft-sys.matlab:562816


Brian,

This is an excellent question.  Without knowing all of your constraints, I can lay out a general plan.  I will try to make this answer into a movie.  See my other movies here: (http://blogs.mathworks.com/videos)

1.) Make a function (with interp2) that will give you the value at an arbitrary point See similar video about that: 
http://blogs.mathworks.com/videos/2007/11/02/advanced-matlab-surface-plot-of-nonuniform-data/

2.)  Use quad2d to do the integration.

I am working on this now, so will post more when finished.