How to calculate volume of surf plot (3d plot) en matlab?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
abdelmadjid benrabah
le 17 Sep 2021
Commenté : Star Strider
le 17 Sep 2021
How to calculate volume of surf plot (3d plot) en matlab?
using variable x and y and function z
0 commentaires
Réponse acceptée
Star Strider
le 17 Sep 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 commentaires
Star Strider
le 17 Sep 2021
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!