Calculate Area under Surface
2 次查看(过去 30 天)
显示 更早的评论
Hi guys,
does anybody know how I can calculate the area under the given curve. I already used a horizontal line at approx. 4.58 to limit my desired area with the following code.
area(x1, max(x1, tmp_1), tmp_1, 'EdgeColor', 'none', 'FaceColor', [.7 .7 .7])
Just to check if my area is the one I really want to calculate. My question now is:
With which approach can I calculate the area and generate an output?
Would you do this with
trapz
But I am not sure about the range for trapz? Really appreciate your help!
2 个评论
Walter Roberson
2016-7-16
It is not clear that you have a surface? What you show appears to be 2D. For 2D see polyarea()
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!