percolation

2D and 3D square matrices for counting straight-line percolation and collision count.

You are now following this Submission

2D and 3D square matrices for counting straight-line (minimum length) percolation. Collision count is also shown.

Percolation can be used for lattice structure transport calculations in condensed matter physics. Also network theory, communication, disease transmission, and failure rate.

See also
en.wikipedia.org/wiki/Percolation
and
mathworld.wolfram.com/PercolationTheory.html

This implementation is incomplete and not sufficient for standard percolation threshold calculations since the usual definition of percolation is not used.

For more relevant implementations of percolation, see
https://github.com/topics/percolation
and
https://rosettacode.org/wiki/Percolation/Site_percolation

Cite As

ben payne (2026). percolation (https://se.mathworks.com/matlabcentral/fileexchange/22838-percolation), 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.1.1.0

Added disclaimer that this implementation doesn't use the standard definition of percolation. Added websites that point to potentially more relevant implemenations

1.1.0.0

added explanatory comments. Improved axis label descriptions. "twodperc.m" still not plotting as desired.

1.0.0.0