Plotting bacterial growth using odes
Mostrar comentarios más antiguos
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 comentarios
darova
el 16 de Oct. de 2019
Show the code you tried
Emmanuel Ayodeji-Ogunsanya
el 16 de Abr. de 2022
how did you plot that system using ode45?
Respuesta aceptada
Más respuestas (2)
darova
el 16 de Oct. de 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
el 29 de Oct. de 2020
0 votos
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.
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

