Question: Problem 2 ( 6 points ) Your inspiratory lung capacity ( ILC ) is defined as the total amount of air that you can breathe

Problem 2(6 points)
Your inspiratory lung capacity (ILC) is defined as the total amount of air that you can breathe out
of your lungs starting from the end of a normal breath, that is, after exhaling a normal amount.
There are two factors that affect one's inspiratory lung capacity: tidal volume (VT) and inspiratory
reserve volume (IRV). Tidal volume is the amount of air that you breathe in with a normal, non-
forced breath. Inspiratory reserve volume is the amount of air that you can forcefully breathe in
after this normal inhalation. Your inspiratory reserve volume is simply the sum of these
quantities:
ILC=IRV+VT
Medical professionals measure IRV and VT using a technique called spirometry, where the patient
breathes in normally or forcefully through a machine and the change in volume is measured.
A group of doctors collected spirometry data from a total of 1000 patients, and they need your
MATLAB skills to help sort through their data. The file "HW10_Spirometry_Data"
contains the variables "T_volumes" and "IR_volumes" which contain the tidal volumes and
inspiratory reserve volumes, respectively, for each patient. Your code should consist of a script
and a function.
Your script should
Load the file "HW10_Spirometry_Data"
Prompt the user for a threshold ILC value
Call your function to find ILC for each patient, mean ILC, and number of patients above
the threshold
Output mean ILC and number of patients above the threshold in the following format:
The average inspiratory lung capacity was ####.## mL
### patients had an inspiratory lung capacity above ####.## mL
Your function should
Have 3 inputs and 3 outputs
Take V data, IRV data, and the threshold ILC as inputs
Calculate ILC for each patient into a new vector and return this vector as an output
Calculate the mean ILC from the data and return as an output
Determine how many patients have an ILC above the threshold and return it as an
output
 Problem 2(6 points) Your inspiratory lung capacity (ILC) is defined as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!