The dew point temperature Td and the relative humidity RH can be calculated (approximately) from the dry-bulb

Question:

The dew point temperature Td and the relative humidity RH can be calculated (approximately) from the dry-bulb T and wet-bulb Tw temperatures by (www.wikipedia.org):
The dew point temperature Td and the relative humidity RH

where the temperatures are in degrees Celsius, RH is in %, and Psta is 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] = Dewp-tRhum (T, Tw, BP), where the input arguments T, Tw, BP are dry-bulb and wet-bulb temperatures in oF 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 sub functions 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: