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. https://in.mathworks.com/help/matlab/ref/convhull.htmlconvhull gives you coordinates of the points which defines your shape, with these corodinates youc an use polyarea. https://in.mathworks.com/help/matlab/ref/polyarea.html Related SolutionsMATLAB: Find the area between 2 plotted regions in a graph Read about trapz..Also have a look on polyarea MATLAB: Find area of the filled region of a graph trapz(x,y) Related QuestionArea of intersection of two ellipses?Fill area between circles
Best Answer