The relative humidity RH at sea level can be calculated from

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.

Solution

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);

 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 (tempera

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site