Question

4. [5 pts] Modify glucose_N.slx and glucose_D1.slx to simulate glucose-insulin dynamics under more realistic conditions where each of these subjects eats 3 meals over 24 hours: - Breakfast starts at hour

= 1, duration=30 minutes, glucose infusion rate = 15,000 mg/hr - Lunch starts at hour = 5, duration=45 minutes, glucose infusion rate = 10,000 mg/hr - Dinner starts at hour = 12, duration=1 hour, glucose infusion rate = 12,000 mg/hr You may assume that the glucose rate per meal is constant within the given duration (i.e., the external glucose infusion rate takes the form of rectangular pulses with different durations). Note that in this question, we are not incorporating any oral glucose tolerance test (as in Q.3). In this question, you would create 3 subplots: i) Plot the trajectories of the external glucose infusions (i.e., the meals). ii) Plot the trajectories of blood glucose predicted by both models (normal and type-1 diabetic) over 24 hours on the same axes. iii) Plot the trajectories of blood insulin predicted by both models (normal and type-1 diabetic) over 24 hours on the same axes. Label all axes. For the glucose and insulin subplots, add a legend indicating which graph belongs to which case (normal or type-1 diabetic). From the simulation results, calculate and report the average and standard deviation of blood glucose and insulin concentrations over 24-hour period. Glucose concentration (mg/ml) N D1 Average SD Insulin concentration (mU/mL) N D1

Fig: 1