문제

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?

도움이 되었습니까?

해결책

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

f=@(x,y)(interp2(k,x,y))
volume = integral2(f,xmin,xmax,ymin,ymax)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top