Path: news.mathworks.com!not-for-mail
From: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Area inside a closed curve
Date: Wed, 4 Aug 2010 04:58:04 +0000 (UTC)
Organization: Ricardo UK Ltd
Lines: 8
Message-ID: <i3as0s$gpi$1@fred.mathworks.com>
References: <i364ls$nh3$1@fred.mathworks.com>
Reply-To: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1280897884 17202 172.30.248.38 (4 Aug 2010 04:58:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Aug 2010 04:58:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 43398
Xref: news.mathworks.com comp.soft-sys.matlab:658873

"Ray Goldman" <kmmansory@yahoo.com> wrote in message <i364ls$nh3$1@fred.mathworks.com>...
> Hello,
> 
> I hope you guys can help, I have a closed curve I need to fine its area. I have two arrays (Flux, Current) that contain the data of the graph. the graph is simply drawn using Plot..
> when they are plotted against each other, they produce something like upside down cone, however, the shape is very irregular and has lots of dents.
> is there any functions that calculates the area inside the closed curve? Thank you so much in advance.

Others have given you code.  If you want to know the background to it, look up "Green's Theorem" and "planimeter".  All very elegant and satisfying.