How to calculate area of space in Matalb
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti

Dear members, I want to calculate area of space created by 4 lines as figure. Could you help me to do that ? Thank you
4 Commenti
Risposta accettata
Image Analyst
il 11 Ott 2018
Try stacking the numerical row vectors of the curves vertically using a semicolon then use min() to get the lower-most curve:
bottomCurve = min([curve1; curve2; curve3; curve4; curve5; curve6], 1);
Then sum from the left index to the right index, whatever they are.
areaUnderCurve = sum(bottomCurve(index1 : index2))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Curve Fitting Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!