Nagel Schreckenberg model implementation

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

You are now following this Submission

Simulation the Nagel Schreckenberg single lane model. All standard parameters are implemented:
-vmax
-density
-braking probability

Also, rendering flag allows user to disable rendering for faster flow-density curve calculations.

Cite As

Alexander Farley (2026). Nagel Schreckenberg model implementation (https://in.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.0

Updated to support Octave

1.3.0.0

Fixed calculated of total flow for FD plot

1.2.0.0

Fixed a problem with vmax=1 showing zero flow.

1.1.0.0

Fixed problem with vehicle velocity updates.

1.0.0.0