The compliance or elasticity of the lung is defined as:
In a biomedical engineering physiology lab, a spirometer was used to measure the volume of the lungs at a given pressure, which was measured by a pressure transducer. The following data were collected:
Write a script that creates vectors to represent these data. Next, the script will find the straight line that best fits the data, and plots the data as circles and also the straight line on the same graph. The slope of this line is the actual compliance of the lung and chest wall. Label your axes and put a title on it.