Question: USE MATLAB TO ANSWER: Write a function file called mixing_ratio.m that calculates the mixing ratio for air as described in Appendix B. There should be
USE MATLAB TO ANSWER:
Write a function file called mixing_ratio.m that calculates the mixing ratio for air as described in Appendix B.
There should be 2 inputs to mixing_ratio.m: temperature T and pressure p.
There should be 1 output from mixing_ratio.m: the value of the mixing ratio w for the given values of T and p.
Be sure to include comments describing the function and its inputs and output.

Appendix B - Mixing Ratio The mixing ratio w is the ratio of the mass of water vapor to the mass of dry air. The mixing ratio corresponding to air temperature T and air pressure p is calculated as follows 0.62197 p, p Po where p, denotes vapor pressure. The vapor pressure is calculated in terms of air temperature T as follows: P10 where po -1013.246 ?? 373.16 ! = 11.344 (1-T/T) a2 ?3.49149 (Tp/T-1) b17.90298 (To/T - 1) b2 - 5.02808 log10 (To/T) bg = -1.3816 (101-1) /107 ba = 8.1328 (10a2-1) /103 bslog1o(po) and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
