Path: news.mathworks.com!not-for-mail
From: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Find integral under three points
Date: Thu, 24 Jan 2008 00:06:27 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <fn8kq3$pm7$1@fred.mathworks.com>
References: <24666116.1201129072686.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
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 1201133187 26311 172.30.248.38 (24 Jan 2008 00:06:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jan 2008 00:06:27 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:447324


Brian <acct1112003@yahoo.com> wrote in message 
<24666116.1201129072686.JavaMail.jakarta@nitrogen.mathforum.org>...
> I have a table of values. I have 360 points, but for example..
> J=[1,5;2,8;3,11];
> 
> How do I find the area under these three points? I've tried using the quad 
function, but I can't seem to get it right. Is there a better way?
--------
  Use 'trapz' for trapezoidal integration.  If trapezoidal integration is not 
sufficiently accurate for your purposes, there are some methods on the Matlab 
Central File Exchange that give higher order approximations.

Roger Stafford