Question: MATLAB Problem. Please provide detail A fuel tank is made of a half cylinder (r = 14 in.) as shown. The amount of fuel in
A fuel tank is made of a half cylinder (r = 14 in.) as shown. The amount of fuel in gallons as a function of h is given by V_fuel = 36[r^2 cos^-1 (r - h/r) - (r - h) squareroot 2r h - h^2] in^3 times gallon/231 in^3 Write a script file that creates a vector for h ranging from 0 to 14 in. with increments of 2 in. Then it calculates the corresponding volume rounded to the nearest tenth of a gallon. The results must be displayed in a two-column table format where the first column is the values of h and the second column is the associated values of the volume of fuel in the tank (in gallons). Save your results to an ASCII format data file with the name Lab4Prob1.txt that can be read by MATLAB or a text-editor on virtually any platform
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
