The relative humidity, RH, at sea level can be calculated from measured values o
ID: 2326476 • Letter: T
Question
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 (temperatures in degrees Celsius): RH = I*P/SI*P 100 where VP is the vapor pressure given by: I*P = e^16.78T_wb-1169/T_wb+2373 - 0.066858(1 + 0.00115T_wb)(T_db - T_wb) and SVP is the saturated vapor pressure given by: SI*P = e^16.78T_db-1169/T_db+2373 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 are Tdb and Twb are the dry-bulb and wet-buld temperatures, respectively in degree F. The output argument RH is the relative humidity in percent (rounded to the nearest integer). Inside the user-defined function use a subfunction, or an anonymous function to convert the unit of the temperature from Celsius to Fahrenheit. Use the function to determine the relative humidity for the following conditions: T_db = 75 degree F, T_wb = 69 degree F. T_db = 93 degree F, T_wb = 90 degree F.Explanation / Answer
here is the matlab code
clf;
prompt = 'input the dry bulb temp';
tdb = input(prompt);
prompt = 'input the wet bulb temp';
twb = input(prompt);
vp = e^((16.78*twb - 116.9)/(twb + 237.3)) - 0.066858*(1 + 0.00115*twb)(tdb - twb);
svp = e^((16.78*tdb - 116.9)/(tdb + 237.3));
rh = vp*100/svp;
disp('Relative humidity is');
disp(rh);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.