Plotting bacterial growth using odes
Afficher commentaires plus anciens
Hi,
I would like to plot the following functions using Matlab:
dx/dt v. time and ds/dt v. time (with dx/dt on the y axis and time on the x axis)
The expression for dx/dt is given as the following:
---- where S and X are unknownthere is an expression for S in this case:
--- where S and X are unknown.I know how to plot the above system by converting the differentials to first order and then solving them using 'ode45'. However, this gives me the plots for X v. t and S v. t.
What I would like instead are plot of the differential equations themselves against time. Any help in this regard would be much appreciated!
2 commentaires
darova
le 16 Oct 2019
Show the code you tried
Emmanuel Ayodeji-Ogunsanya
le 16 Avr 2022
how did you plot that system using ode45?
Réponse acceptée
Plus de réponses (2)
darova
le 16 Oct 2019
How do you know that it is the correct order (why not S,X,P ?)
y0 = [X0 S0 P0];
Try this to plot X vs S
[t,ysol] = ode45(M,interval,y0)
% Graph Plots%
plot(ysol(:,1),ysol(:,2))
Shivya Shrivastava
le 29 Oct 2020
0 votes
An investigator has reported the data tabulated below for an experiment to determine the growth rate of bacteria k (per d), as a function of oxygen concentration c (mg/L). Find which degree of polynomial is the best fit for given data using MATLAB.
c (mg/L)
0.5
0.8
1.5
2.5
4
k (per d)
1.1
2.4
5.3
7.6
8.9
Plot the best fit curve by continuous line along with the given data points by ‘o’ on the same graph. Print the equation on command prompt after getting the coefficient.
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

