Area under a shape?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, I'd really like to know how to calculate the area beneath a shape like this: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333618/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333618/image.png)
So from the outer borders to x-axis. Since the values are repeating I reckon trapz() doesn't work.
댓글 수: 0
채택된 답변
KSSV
2020년 7월 18일
Read about polyarea, convhull.
convhull gives you coordinates of the points which defines your shape, with these corodinates youc an use polyarea.
댓글 수: 4
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!