How can I determine the number of threads that MATLAB uses?

In MATLAB versions up to 7.7 (2008b) you can determine the maximum number of threads that it can use with

N = maxNumCompThreads
LASTN = maxNumCompThreads(N)
LASTN = maxNumCompThreads('automatic') 

In MATLAB versions 7.8 and onward, the maxNumCompThreads function is not supported any more. Instead, you can tell MATLAB that it should use a single thread at startup by providing the -singleCompThread to the smartup command, e.g.

matlab78 -nodesktop -singleCompThread 

See http://www.mathworks.com/access/helpdesk/help/techdoc/ref/maxnumcompthreads.html for more details.

faq/how_can_i_determine_the_number_of_threads_that_matlab_uses.txt · Last modified: 2013/11/12 21:50 by 37.251.53.205

You are here: startfaqhow_can_i_determine_the_number_of_threads_that_matlab_uses
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
Mobile Analytics Website Security Test