Question: Q 3 ) MATLAB, MAKE CODE COPYABLE Ellipsoid Tank The volume V of a liquid in a partially filled ellipsoid shaped tank is given by:
Q MATLAB, MAKE CODE COPYABLE
Ellipsoid Tank
The volume of a liquid in a partially filled ellipsoid shaped tank is given by:
Where is the depth of the fluid measured from the ground. The figure below shows a cross
Develop a single function to create a properly labeled plot of the volume of the liquid versus the depth andor calculate the total volume of the tank. Use the nargin command to verify the proper number of input arguments and assign units if no units are provided. Use the nargout command to determine whether to calculate and return the total tank volume. The funrtinn has hoon ctarted in tho HW tomnlate
a Test #: Test your function by calling it from within your script with the commands: plottitle 'Volume versus depth for an ellipsoid tank'; ellipsoidvolumeplottitle,'inch'
b Test #: Test your function by calling it from within your main program with the command:
ellipsoidvolume
Use an fprintf statement to display with four decimal places eg "The volume of the tank is xxxxxxxxx cubic meters"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
