Calculating area between two non time series curves

1 view (last 30 days)
Hi all,
I'm having trouble finding a way to calculate the area between two curves that are described by arrays of coordinates. In the attached image you can see the plot of the data (Data attached). I've looked at other questions in this community ( How can I calculate the area between two curves? etc.), but these calculations are based on data with a unique Y for every X.
The data in the plot as a unique X for every Y, but this is not always the case for my data so 'inverting' the axis won't solve my problem.
Does anyone have any advice on how to tackle this?
Follow-up question; is there a specific name for this type of data that has no unique solutions for X an Y?
Thanks a lot!
  2 Comments
KSSV
KSSV on 28 Nov 2017
Attaching data in dropbox is not suggested......one should have account to download the data. Why don't you attach your data here?
Stijn
Stijn on 28 Nov 2017
I added the data to the original post, overlooked the attachment button.

Sign in to comment.

Accepted Answer

KSSV
KSSV on 28 Nov 2017
Read about trapz. Also have a look on polyarea.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!