This investigation needs to be wrtten in Matlab coding.
User written businesss and nested loops A round breathe-into tank is rich to a culmination H. The bisection of the tank is D_ The breathe-into minister pipe from the tank is united to the foot of the tank and runs at-once to the plea. The bisection of the minister pipe is D_ Write a user written business that expects (as the evidence) scalar values ce the brace bisections, the tank culmination, and the breathe-into plane (from the plea). The business must recur the body of breathe-into contained in the tank and minister pipe thoroughly. The syntax of your business should be: TV Dtank, Dpipe,Htank Hwater) Test your method on ce a tank bisection of 5 meters, a pipe bisection of 0.5 meters, a tank culmination of 50 meters, and a breathe-into culmination of 51 meters. In the instruct window symbol a = TV(5, 0.5, 50, 51). Check the outcome.
business [vol] = TV (Dt,Dp,Ht,Hw)
Lp = Ht -(Dt)/2;
Vp = pi*Lp*Dp*Dp/4;
l = Hw-Lp;
c = sqrt(l*(Dt/2 *2 – l));
Vs = pi/6 *l*(3*c*c + l*l);
v = Vs+Vp;