tankvolume_35 - volume = (1/3)*pi*R^3 + (d-R)*pi*R^2; else...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%Problem 3.5 % function volume = tankvolume_35(R, d) f format short; f if d <= R volume = (1/3)*pi*d^3;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: volume = (1/3)*pi*R^3 + (d-R)*pi*R^2; else volume = 'Overtop'; end end e...
View Full Document

This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online