MATLAB: Area under a shape

areaMATLABshape

Hello, I'd really like to know how to calculate the area beneath a shape like this:
So from the outer borders to x-axis. Since the values are repeating I reckon trapz() doesn't work.

Best Answer

Read about polyarea, convhull.
convhull gives you coordinates of the points which defines your shape, with these corodinates youc an use polyarea.
Related Question