Calculating area between two non time series curves

1 visualización (últimos 30 días)
Stijn
Stijn el 28 de Nov. de 2017
Comentada: Stijn el 28 de Nov. de 2017
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 comentarios
KSSV
KSSV el 28 de Nov. de 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 el 28 de Nov. de 2017
I added the data to the original post, overlooked the attachment button.

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by