Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. ( 20 points) The height of a barometer is directly proportional to the atmospheric pressure, or P=gh where P : pressure Pa), : density
1. ( 20 points) The height of a barometer is directly proportional to the atmospheric pressure, or P=gh where P : pressure Pa), : density of the barometer fluid (kg/m3), and h : height of the liquid column (in meters). For mercury barometers, the density of the fluid 13,560kg/m3. On the surface of the earth, the accelaration due to gravity is 9.8m/s2. Thus, the only variable in the equation is the heigth of the fluid column. Write a script M-file to perform the tasks: a) Create an anonymous function P that finds the pressure if the value of h is provided. b) Create another anonymous function to convert pressure in Pa to pressure in atmospheres (atm). Call the function Pato_ atm. Note that 1atm=101325Pa. c) Use your anonymous functions to find the pressure for fluid heights from 0.5m to 1m (with increments of 0.1m ) of mercury. d) Save your anonymous functions as .mat files
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started