Calculating area between two non time series curves

1 回表示 (過去 30 日間)
Stijn
Stijn 2017 年 11 月 28 日
コメント済み: Stijn 2017 年 11 月 28 日
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.
  1 件のコメント
Stijn
Stijn 2017 年 11 月 28 日
Thanks! Polyarea did the trick :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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