Welcome to Scribd!
Academic Documents
Professional Documents
Culture Documents
Hobbies & Crafts Documents
Personal Growth Documents
200833102
G=6.67*(10^-11)rho=1R=1z=1[x,y]=meshgrid(-2:0.2:2,-2:0.2:2)r=(x.^2+y.^2).^0.5;g=((4*pi*G*rho*R^3)/3.*z./(x.^2+z.^2).^1.5);surf(x,y,g)shading interp