Domanda

I have a 3d surface named,k for example:

a=8;

k(b,c)=a;

surf(k)

how to compute the volume and size under the surface plot?

È stato utile?

Soluzione

The volume is the integral (assuming k>=0). Use integral2.

f=@(x,y)(interp2(k,x,y))
volume = integral2(f,xmin,xmax,ymin,ymax)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top