Question: Complete the code Write a MATLAB script to solve our nonhomogeneous drug - delivery problem using ode 4 5 . Recall that our model is
Complete the code
Write a MATLAB script to solve our nonhomogeneous drugdelivery problem using ode Recall that our model is represented as:
Solve for the TimedRelease Capsule input function: over the time min.
Make sure that the solutions output from ode is stored to a vector
Script?
Define constants:
;
;
;
;
;
absorption rate
min digestion rate
metabolic rate
initial dose Drug release rate
Define the anonymous function odefun to represent the system of THREE ODEs to be solved
Solve the system of three equations using ode for all points in time vector, :
linspace;
Here your ode output should include the solutions array named see code below for how is used later
Plot solutions:
:; :;
:; :;
fig figure;
fig.Name 'Numerical Approach'; fig.Color ;
plot tD t B tw linewidth ;
xlabeltime min; ylabelAmount of Drug mg; titleTimed Release Capsule';
gca; axFontSize
L legendDtBtWt 'orientation 'vertical'; L FontSize ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
