Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 realStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started