I have data in a form of a matrix which specifies a 2D surface on a gird, such as
[X,Y]=meshgrid(-3:0.1:3,-3:0.1:3);data=peaks(X,Y);
I would like to know how to calculate the volume under this surface.
2dMATLABsurfacevolume
[X,Y]=meshgrid(-3:0.1:3,-3:0.1:3);data=peaks(X,Y);
Best Answer