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
Star Strider
2021년 9월 17일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!