| MATLAB Function Reference | ![]() |
N = maxNumCompThreads
LASTN = maxNumCompThreads(N)
LASTN = maxNumCompThreads('automatic')
N = maxNumCompThreads returns the current maximum number of computational threads N.
LASTN = maxNumCompThreads(N) sets the maximum number of computational threads to N, and returns the previous maximum number of computational threads, LASTN.
LASTN = maxNumCompThreads('automatic') sets the maximum number of computational threads using what MATLAB determines to be the most desirable. It additionally returns the previous maximum number of computational threads, LASTN.
Currently, the maximum number of computational threads is equal to the number of computational cores on your machine.
Note Unlike enabling multithreading using the Preferences panel, setting the maximum number of computational threads using maxNumCompThreads will not propagate to your next MATLAB session. |
![]() | MaximizeCommandWindow | mean | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |