15-Jul-2022 17:56:41 percolation_simulation_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 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 = 623 Observed probability of occupation = 0.608398 Number of clusters = 37 Mean cluster size = 16.8378 Cluster size distribution Size Number Probability 1 17 0.459459 2 4 0.108108 3 5 0.135135 4 2 0.0540541 5 2 0.0540541 7 1 0.027027 12 1 0.027027 15 1 0.027027 42 1 0.027027 57 1 0.027027 65 1 0.027027 367 1 0.027027 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. 15-Jul-2022 17:56:51