Area under a shape?

1 vue (au cours des 30 derniers jours)
Niklas Kurz
Niklas Kurz le 18 Juil 2020
Commenté : Niklas Kurz le 19 Juil 2020
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.

Réponse acceptée

KSSV
KSSV le 18 Juil 2020
Read about polyarea, convhull.
convhull gives you coordinates of the points which defines your shape, with these corodinates youc an use polyarea.
  4 commentaires
Niklas Kurz
Niklas Kurz le 19 Juil 2020
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 le 19 Juil 2020
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?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by