Hi. I have found that MATLAB is much slower on a computing cluster than on my local machine for statistical analysis of brain data. This is not a general issue of the cluster, as I do not have this problem when using Python for similar types of analyses.
I am seeing 62x slowdown for a particular analysis. This is both when I parallelize the code and when I do not. To be more specific, one iteration of this analysis takes ~22 mins to run on 1 core on my laptop, versus estimated 23 hours on the cluster. With 12 cores on the cluster, I see roughly 12x speedup to estimated 2 hrs, which is still much longer than the time for 1 core on my laptop.
Our cluster administrator does not know what the source of this issue could be, so I would like to ask the MATLAB experts directly if there is anything you might suspect could be causing this issue.