How to calculate volume of surf plot (3d plot) en matlab?
20 次查看(过去 30 天)
显示 更早的评论
How to calculate volume of surf plot (3d plot) en matlab?
using variable x and y and function z
0 个评论
采纳的回答
Star Strider
2021-9-17
x = 1:10;
y = 1:20;
[X,Y] = meshgrid(x,y);
z = exp(-((X-5)/5.*(Y-10)/10).^2)
zvol = trapz(x,trapz(y,z))
figure
surf(x, y, z)
grid on
.
4 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!