I need a solution for matlab (code) not calculation, Thank you
Ideal gas tow: PV = nRT P = pressure (kPa) V = volume (m^3) n = number of kmoles of gas in sample R = ideal gas constant (8.314 kPa middot m^3/kmol middot K) T = temperature (K) Conversion to kPa: 1 cm H_2O = 0.098 kPa Conversion to m^3: 1 mL = 10^-6 m^3 Relationship between moss and moles: n = m/MW m = mass (kg) MW = molar mass in kg/mol Find the mass of air in the male patient. Find the mass of air in the female patient. Variables Male lung capacity = 6000 mL Female lung capacity = 4300 mL Temperature = 300 K Pressure = 30 cmH_2O Average air molecular mass = 29 kg/kmol In class, we found the mass of air present in the lung of a male patient and female patient. Assuming that the temperature of the air is 300 K and pressure 30 cmH20, calculate the mass of air (in grams) for 10 equally spaced total lung capacity values, with the minimum value of 4200 mL and the maximum value of 6000 mL. Recall from class that the average molar mass of air is 29 kg/kmol.