These answers demonstrate one possible method for plotting the truncated surfaces. It's up to you to apply it to your assignment. I'm sure there are many other examples on the forum. These just happen to be the ones I had indexed.
More generally:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!