How to Compute the Volume under contour lines?

9 次查看(过去 30 天)
hi, output of my data set is 5x15 matrix, with this a contourf was plotted. the plot displays differnt colous since i used contourf command. so, i would like to compute volume of each contour line, iam having area under each contour line (this is for further information only) .. please help me.

回答(1 个)

KSSV
KSSV 2017-7-17
You may get the volume using trapz. YOu may have a look into following link:
  1 个评论
laxminarayana pasupuleti
Thank you for reply, as per your suggestion, i use below code trapz(y,trapz(x,Z,2),1)..this is giving some answer but it was wrong.. can you tell me, in abobe code what is meaning of 2 and 1..

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by