MATLAB: The Matlab 2017a has a restriction on the number of “workers”

bugMATLABParallel Computing Toolboxparallel pool

In earlier versions of MATLAB there was a restriction on the number of 'workers' – there was a maximum of 12, but this was lifted as of 2015a. As I am using 2017a, I should not be experiencing this. I have checked my 'numcores', here is the result.
>> feature('numcores')
MATLAB detected: 16 physical cores.
MATLAB detected: 16 logical cores.
MATLAB was assigned: 16 logical cores by the OS.
MATLAB is using: 16 logical cores.
but when I run my program, Matlab shows
Starting parallel pool (parpool) using the 'local' profile …
connected to 12 workers.

Best Answer

Open up the parallel preferences. What is the preferred number of workers in a parallel pool listed in the preferences?
Also open the Cluster Profile Manager using the link on the preferences window and check the NumWorkers property to ensure it has not been set explicitly to open 12 workers.