Calculating area between two non time series curves

1 次查看(过去 30 天)
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 个评论
KSSV
KSSV 2017-11-28
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 2017-11-28
I added the data to the original post, overlooked the attachment button.

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by