19-Nov-2022 19:48:08 percolation_simulation_test(): MATLAB/Octave version 4.2.2 percolation_simulation() simulates percolation. A rectangular region is formed by a grid of M x N squares. Each square may be porous or solid. We are interested in paths of porous squares connecting the top and bottom, or the left and right boundaries. Grid uses 32 rows x 32 columns Prescribed probability of occupation = 0.6 Total number of sites = 1024 Number of occupied sites = 634 Observed probability of occupation = 0.619141 Number of clusters = 25 Mean cluster size = 25.36 Cluster size distribution Size Number Probability 1 13 0.52 2 2 0.08 3 1 0.04 4 1 0.04 5 2 0.08 6 1 0.04 8 1 0.04 9 1 0.04 22 1 0.04 123 1 0.04 432 1 0.04 Number of horizontal spanning clusters = 1 Number of vertical spanning clusters = 0 Graphics saved as "occupation.png" Graphics saved as "clusters.png" percolation_simulation_test() Normal end of execution. 19-Nov-2022 19:48:51