Question: Using matlab to solve please display command window and result window for the following problem. A barometer (see Figure P4.6) is used to measure atmospheric
Using matlab to solve please display command window and result window for the following problem.

A barometer (see Figure P4.6) is used to measure atmospheric pressure and is filled with a high-density fluid. In the past, mercury was used, but because of its toxic properties it has been replaced with a variety of other fluids. The pressure P measured by a barometer is the height of the fluid column, h limes the density of the liquid, , times the acceleration due to gravity, g, or This equation could be solved for the height: Find the height to which the liquid column will rise for pressures fn 100 kPa for two different barometers. Assume that the first uses mercury, with a density of 13.56 g/cm3 (13,560 kg/m3), and the second uses water, with a density of 1.0 g/cm3 (1000 kg/m3). The acceleration due to gravity is 9.81 ms Before you start calculating, be sure to check the units in this calculation. The metric measurement of pressure is a pascal (Pa), equal to 1 kg/m s2 A kPa is 1000 times as big as a Pa. Your answer should be a two-dimensional matrix 0 to height h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
