How to calculate volume of surf plot (3d plot) en matlab?
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abdelmadjid benrabah
el 17 de Sept. de 2021
Comentada: Star Strider
el 17 de Sept. de 2021
How to calculate volume of surf plot (3d plot) en matlab?
using variable x and y and function z
0 comentarios
Respuesta aceptada
Star Strider
el 17 de Sept. de 2021
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 comentarios
Star Strider
el 17 de Sept. de 2021
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Más respuestas (0)
Ver también
Categorías
Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!