Matlab library code on cluster - not using more than one core/thread?

Solution 1:

You can use maxNumCompThreads to control the number of computational threads MATLAB will use.