Question: For this problem, create a single program named lastname_firstname_P1.m The equations below represent the height of water, as a function of time, in a tank

For this problem, create a single program named lastname_firstname_P1.m The equations below represent the height of water, as a function of time, in a tank that has one inlet at the top and one outlet at the bottom. Water enters at a constant rate through the inlet and exits at a non- constant rate (the Torricelli model) through the outlet. dh Atank = C - Aout 2gh dt The values of the constants are Atank 6.283 m Area of tank : 0.1571 m Area of outlet 1 m/s Volumetric flowrate through inlet 9.8 m/s? Gravity Hater 2 m Height of water in tank when it overflows and the initial condition is h(0) = 0 (a) Use MATLAB to solve the following linear equations: -44x + 10y + 162 = -20 10x 43y + 6z + 12w = 0 16x + 6y - 30z + 8w = 12 12y + 82 - 34w = -40 Convert to an equivalent cod using for loop Consider the following MATLAB code: a=1; while a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
