Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you please explain how to execute it on the matlab command window please The relative humidity, RH, at sea level can be calculated from
Can you please explain how to execute it on the matlab command window please
The relative humidity, RH, at sea level can be calculated from measured values of the dry-bulb temperature, T_db, and the wet-bulb temperature, T_wb, by: RH = VP/SP times 100 where VP is the vapor pressure given by: Vp = e^16.78 T_wb - 116.9/T_wb + 237.3 - 0.066858(1 + 0.00115T_wb)(T_db - T_wb) and SVP is the saturated vapor pressure given by: SVP = e^16.78 T_wb - 116.9/T_wb + 237.3 (temperatures in degrees Celsius). Write a user-defined function for calculating RH for given T_db and T_wb. For the function name and arguments, use RH = RelHum(Tdb, Twb). The input arguments Tdb and Twb are the dry-bulb and wet-bulb temperatures, respectively in degree F. The output argument RH is the relative humidity in percent (rounded to the nearest integer). Another function to convert the temperature entered from Fahrenheit to Celsius must be written and called by the main function RelHum. For the function name and arguments of the temperature unit conversion, use TC = TF to C (TF). Use the function to determine the relative humidity for the following conditions: a. T_db = 75 degree F and T_wb = 69 degree F b. T_db = 93 degree F and T_wb = 90 degree F The relative humidity, RH, at sea level can be calculated from measured values of the dry-bulb temperature, T_db, and the wet-bulb temperature, T_wb, by: RH = VP/SP times 100 where VP is the vapor pressure given by: Vp = e^16.78 T_wb - 116.9/T_wb + 237.3 - 0.066858(1 + 0.00115T_wb)(T_db - T_wb) and SVP is the saturated vapor pressure given by: SVP = e^16.78 T_wb - 116.9/T_wb + 237.3 (temperatures in degrees Celsius). Write a user-defined function for calculating RH for given T_db and T_wb. For the function name and arguments, use RH = RelHum(Tdb, Twb). The input arguments Tdb and Twb are the dry-bulb and wet-bulb temperatures, respectively in degree F. The output argument RH is the relative humidity in percent (rounded to the nearest integer). Another function to convert the temperature entered from Fahrenheit to Celsius must be written and called by the main function RelHum. For the function name and arguments of the temperature unit conversion, use TC = TF to C (TF). Use the function to determine the relative humidity for the following conditions: a. T_db = 75 degree F and T_wb = 69 degree F b. T_db = 93 degree F and T_wb = 90 degree FStep 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