Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

complete the code Write a script to solve the same drug delivery problem using MATLAB's symbolic solver. Remember we are solving the system of equations:

complete the code Write a script to solve the same drug delivery problem using MATLAB's symbolic solver. Remember we are solving the system of equations:
dDdt=-(ka+kd)D+rD0e-rt
dBdt=kaD-kmB
dWdt=kdD+kmB
When using the symbolic solver, be sure to use the symbolic variable names defined below:
You will also have to define symbolic functions:
Your code should complete the following:
Define all symbolic variables and functions
Define symbolic expressions for the derivatives dDdt,dBdt, and dWdt as dD,dB, and dW, respectively
ka=0.025min-1
kd=0.005min-1
km=0.015min-1
D0=50mg
r=0.1151min-1
0t360min
Check your plots against the solutions from Mid-Lab Question 1
Script ?
1% Define our Variables and Constant
% Define the Symbolic Functions for D(t),B(t),W(t) :
5 Define Derivatives, dD,dB,dW
% Define System of THREE ODEs:
% Define initial conditions:
% Solve ODEs with dsolve, and assingn the solution to variable 'y'
% Display your solutions:
yD=y*D;yB=y*B;yW=y*w;
fprintf('D(t)=%s?
?',yD;
fprintf('B(t)=%s?
?',yB;
fprintf('{:W(t)=%s?
?',yW);
: Define numeric values for the parameters (to be used with subs)
% order of variables: {ka, kd, km, D0, r, t}
% order of variables: {ka,kd,km,D0,r,t} vals , linspace (0,6**60,2000)
% use SUBS function to define Dnum, Bnum, Wnum
P Plot Solution
t= linspace (0,360,2000)
t= linspace (0,360,2000);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions