Question: I need help on this program using mat lab . what are the code ? 2. glucoseHR.m: Download the file glucoseHR_outline.m from Moodle. The differential
I need help on this program using mat lab .
what are the code ?


2. glucoseHR.m: Download the file glucoseHR_outline.m from Moodle. The differential equations below describe the blood glucose level, C (mmol/L) and heart rate, HR (beats/min), as a function of time, t (min) dc = 0.15 * HR(t) dt dHR = sin(t) * HR (t) dt Use the following initial conditions: C(t = 0) = 6 mmol/L HR (t = 0) = 65 beats/min write code that uses Euler's method to solve this problem from t-0 to t = 20 min with a time step, dt, of 30 seconds. Store the solutions of C and HR in separate arrays called Ct and HRt. Plot Ct and HRt on separate vertically stacked plots using the subplot command. Or, try to figure out plotyy to make two data sets with different y axes. Either is acceptable. a) b) You should find that after 20 minutes, C= 250.4729 mmol/L and HR= 6.4911 beats/min. Either the patient is dead or in fantastic shape, or these numbers that I got from somewhere else aren't real 2. glucoseHR.m: Download the file glucoseHR_outline.m from Moodle. The differential equations below describe the blood glucose level, C (mmol/L) and heart rate, HR (beats/min), as a function of time, t (min) dc = 0.15 * HR(t) dt dHR = sin(t) * HR (t) dt Use the following initial conditions: C(t = 0) = 6 mmol/L HR (t = 0) = 65 beats/min write code that uses Euler's method to solve this problem from t-0 to t = 20 min with a time step, dt, of 30 seconds. Store the solutions of C and HR in separate arrays called Ct and HRt. Plot Ct and HRt on separate vertically stacked plots using the subplot command. Or, try to figure out plotyy to make two data sets with different y axes. Either is acceptable. a) b) You should find that after 20 minutes, C= 250.4729 mmol/L and HR= 6.4911 beats/min. Either the patient is dead or in fantastic shape, or these numbers that I got from somewhere else aren't real
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
