Drift Diffusion Process
Version 1.0.0.0 (2.39 KB) by
Valerio Biscione
Simulating the drift diffusion process (variability across trial)
This is a optimized simulation of the drift diffusion process (DDP, as described, for example, here http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2474742/). I used a mixture of for loops and cumsum to obtain high speed.
The same code can be used to have a diffusion process without drift across trial, a binary DDP, a one-choice DDP, a one choice pure diffusion process.
Cite As
Valerio Biscione (2026). Drift Diffusion Process (https://uk.mathworks.com/matlabcentral/fileexchange/48787-drift-diffusion-process), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Thermodynamics & Statistical Physics in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Quantile Probability Plot
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
