Area under a shape?

조회 수: 3 (최근 30일)
Niklas Kurz
Niklas Kurz 2020년 7월 18일
댓글: Niklas Kurz 2020년 7월 19일
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.

채택된 답변

KSSV
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
Niklas Kurz
Niklas Kurz 2020년 7월 19일
I thought there'd be a more elegant solution like with
area(Yp,Xp)
I can cast the shadow of the shape, but nothing more.
Well, I keep it simple and extract a curve manually as u advised. This works at the least.
Niklas Kurz
Niklas Kurz 2020년 7월 19일
If u need some inspiration: This User has answered the question sophisticatedly:
https://de.mathworks.com/matlabcentral/answers/565277-how-to-apply-a-fit-on-this-shape?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by