How to plot dsolve?
Show older comments
I am working on a code for enzyme kinetics. Initial concentration and rate constants are given. I have also use the dsolve command to solve for the differential equations below.
t = (0:0.4:40);
Ao = 3;
Bo = 2;
Co = 0;
So = 0.5;
Fo = 0;
k1 = 0.1;
k2 = 0.2;
k3 = 0.3;
k4 = 0.4;
k5 = 0.05;
A = simplify(dsolve('DA = (-k1*A)+(k2*S^2)+(k3*C*S)-(k4*A^2)','A(0) = Ai','t'))
B = simplify(dsolve('DB = (k1*A)+(k2*S^2)','B(0) = Bo','t'))
C = simplify(dsolve('DC = (-k3*C*S)+(k4*A*A)','C(0) = Co','t'))
S = simplify(dsolve('DS = (-k2*S*S)-(k3*C*S)+(k4*A*A)-(k5*S)', 'S(0) = So','t'))
F = simplify(dsolve('DF = (-k5*S)', 'F(0) = Fo','t'))
I am, however, having a problem trying to plot the output of A,B,C,S, and F as a function of time. Should I be using ezplot or plot to execute this code?
Thank you for your assistance.
Have a good day!
Answers (0)
Categories
Find more on Special Values in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!