Question: USE MATLAB TO ANSWER: Write a function file called Delta_q.m that calculates the value of the function delta q defined in Appendix C. There should
USE MATLAB TO ANSWER:
Write a function file called Delta_q.m that calculates the value of the function delta q defined in Appendix C.
There should be 4 inputs to Delta_q.m: the values of T , atmospheric temperature Ta, dew point Td, and atmospheric pressure pa.
There should be 1 output from Delta_q.m: the value of delta q (T, Ta, Td, pa).
Be sure to include comments describing the function and its inputs and output.


Appendix C - Wetbulb Temperature As explained by Dr. Colby, wetbulb temperature is the temperature a parcel of air can be cooled to by evaporating water into it at constant pressure. Given the air temperature Ta (K), the dew point Td (K), and the atmospheric pressure pa (hectopascals), the wetbulb temperature can be calculated by finding the root of the function Aq given by 1 + w2 where cp 1005 J/(kg K) is the heat capacity of water vapor; L 2.501 x 10 J/kg is the latent heat of water vapor at 0C; wi denotes the mixing ratio corresponding to temperature Ta and pressure pa, and w2 denotes the mixing ratio corresponding to temperature T and pressure a. Use your function mixing-ratio to calculate w and w2. The units of T are degrees K
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
