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.

추가 답변 (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