How to use Gillespie's algorithm in MATLAB to display chemical reactions
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yuhong Jin
el 22 de Nov. de 2019
Respondida: Dinesh Yadav
el 26 de Nov. de 2019
Hi everyone, I am trying to use MATLAB to do Gillespie's algorithm for chemical reactions:
A + B --> C with rate f,
and C --> decay with rate d,
in which f = d = 1/s.
At time 0, A(0) = 20, B(0) = 10 and C(0) =10.
Could you please help me with this, probably using random number generator to represent probalities of each reactions?
Thank you all very much!
0 comentarios
Respuesta aceptada
Dinesh Yadav
el 26 de Nov. de 2019
Hi Yuhong
Kindly go through the following links for existing implementations.
https://www.mathworks.com/matlabcentral/fileexchange/34707-gillespie-stochastic-simulation-algorithm
Hope it helps.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!