This is due to the fact that MATLAB follows different rules to calculate percentile thresholds. The number of detected events from this toolbox would be slightly less than that from Python and R.
Fast MATLAB assembly of FEM matrices in 2D and 3D: Nodal elements by Talal Rahman.pdf Finite Element Methods for Maxwell's by Peter Monk.pdf Finite Elements and Fast Iterative Solvers With ...