In previous MATLAB versions, I was able to set the number of threads which were used by MATLAB in the Preferences menu. This setting would then automatically propagate to the components that I compile using MATLAB Compiler.
I have seen the maxNumCompThreads function, and I can easily use it in combination with standalone applications. However if I create a library, COM component, .NET assembly, or Java archive with multiple functions, I do not want to have to add maxNumCompThreads calls to all my functions or add a special initialization function which always needs to be called first.
Best Answer