Nagel Schreckenberg model implementation

Simulation of the Nagel Schreckenberg single-lane traffic model, with visualization and plotting.

Download
Download

You are now following this Submission

Cite As

Alexander Farley (2026). Nagel Schreckenberg model implementation (https://www.mathworks.com/matlabcentral/fileexchange/34956-nagel-schreckenberg-model-implementation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated to support Octave

Download
1.3.0

Fixed calculated of total flow for FD plot

Download
1.2.0

Fixed a problem with vmax=1 showing zero flow.

Download
1.1.0

Fixed problem with vehicle velocity updates.

Download
1.0.0

Download