- #1

mulface

- 1

- 0

"A working pit is plan to be dug to host a football alike object. The shape of the object is

given by the following equation

X^2+Y^2+(1/4*Z^2) = 25

The object will be put into the place from above, and the wall of the pit must have at least

1 meter clearance from the object in all directions.

Use MATLAB to calculate the volume of the pit, and plot in 3D to show where to dig, and

where the object will be hosted.

Aim:

Practice on MATLAB for the following topics

Draw 3D surface plot.

Numerical integration.

Enhance the graph."

Can anyone help me out, I have this so far...

[x,y,z]=sphere(20);

mesh(x,y,z)

(x^2)+(y^2)+(0.25*z^2);

surf(x,y,z)

axis vis3d on

shading interp

light('Position',[-3 -1 3]);