How to calculate volume of surf plot (3d plot) en matlab?
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abdelmadjid benrabah
am 17 Sep. 2021
Kommentiert: Star Strider
am 17 Sep. 2021
How to calculate volume of surf plot (3d plot) en matlab?
using variable x and y and function z
0 Kommentare
Akzeptierte Antwort
Star Strider
am 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 Kommentare
Star Strider
am 17 Sep. 2021
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!