Calculate partial area under plot

10 次查看(过去 30 天)
ReVl Hulk
ReVl Hulk 2015-11-22
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 个)

类别

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