MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
5th Edition
ISBN: 9781118629864
Author: Amos Gilat
Publisher: WILEY
bartleby

Videos

Textbook Question
Book Icon
Chapter 7, Problem 31P

The dew point temperature Tdand the relative humidity RH can be calculated (approximately) from the dry-bulb T and wet-bulb Twtemperatures by (http//www.wikipedia.org):

e s = 6.112 exp 17.67 T T + 243.5 e w = 6.112 exp 17.67 T w T w + 243.5

e = ewPsta(T Tw)0.00066(1 + 0.00115Tw)

R H = 100 e e s T d = 243.5 In ( e / 6.112 ) 17.67 In ( e / 6.112 )

where the temperatures are in degrees Celsius, RH is in %, and pstais the barometric pressure in units of millibars.

Write a user-defined MATLAB function that calculates the dew point temperature and relative humidity for given dry-bulb and wet-bulb temperatures in degrees Fahrenheit (° F) and barometric pressure in inches of mercury (inHg). For the function name and arguments, use [Td, RH) = DewptRhum (T, Tw, BP), where the input arguments T, Tw, BP are dry-bulb and wet-bulb temperatures in °F and BP is the barometric pressure in inHg, respectively. The output arguments Td, RH are the dew point temperature in °F and the relative humidity in %. The values of the output arguments should be rounded to the nearest tenth. Use anonymous function or subfunctions inside DewptRhum to convert units.

Use the user-defined function DewptRhum for calculating the dew point temperature and relative humidity for the following cases:

(a) T = 78 °F, Tw= 66 °F, psta= 29.09 inHg

(b) T= 97 °F, Tw= 88 °F, psta= 30.12 mbar

Blurred answer
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Text book image
Calculus For The Life Sciences
Calculus
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:Pearson Addison Wesley,
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Chain Rule dy:dx = dy:du*du:dx; Author: Robert Cappetta;https://www.youtube.com/watch?v=IUYniALwbHs;License: Standard YouTube License, CC-BY
CHAIN RULE Part 1; Author: Btech Maths Hub;https://www.youtube.com/watch?v=TIAw6AJ_5Po;License: Standard YouTube License, CC-BY