Calculate partial area under plot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone,
I'm trying to calculate the crossed area under this closed graph:

I have a set of X,Y coordinates (red points), in which I plotted the closed graph. And the equation of a straight line of Y = a, which cuts the closed graph at 2 points. My goal is to find the sum of the areas of S, S1 and S2.
For the area of S, I used the polyarea(X,Y) function.
But I can't find a solution to calculate the S1 and S2 area.
Could anyone give me a suggestion, please?
Thank you!
0 comentarios
Respuestas (0)
Ver también
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!