Gillespie's Direct Method Stochastic Simulation Algorithm

Code to stochastically simulate coupled chemical reactions.

You are now following this Submission

This code implements the Stochastic Simulation Algorithm (direct method) published by D.T. Gillespie in 1977 in the Journal of Physical Chemistry.

Default reactions and analytical solutions correspond to a simple model of gene expression for a single cell (Kaern et al.,Nat.Rev.Genet.,2005): Pro-->M-->P, with mRNA (M-->0) and protein (P-->0) decay, when the gene is assumed to be constantly expressed (Pro denotes the promoter of the gene) and cell volume is constant and set to unity. The mRNA and protein time series and probability histograms are plotted.

Cite As

Daniel Charlebois (2026). Gillespie's Direct Method Stochastic Simulation Algorithm (https://uk.mathworks.com/matlabcentral/fileexchange/34151-gillespie-s-direct-method-stochastic-simulation-algorithm), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Chemistry in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.8.0.0

Minor change to code to allow user to limit access to waitbar function (to reduce runtime).

1.3.0.0

Corrected minor typo in code.

1.0.0.0