Yea, I used a similar code to calculate the area of the shape:
b = boundary(Xp,Yp)
X0=Xp(b); Y0 = Yp(b)
A = polyarea(X0,Y0)
Surprisingly (kind of) this works as well with
k = convhull(Xp,Yp)
The thing is, I want to compute the area under the figure, not inside. My formulation was a bit ambiguous. Sadly I couldn't yet find an answere to this issue here.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.