Calculate partial area under plot

10 vues (au cours des 30 derniers jours)
ReVl Hulk
ReVl Hulk le 22 Nov 2015
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!

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by