title: How can I determine the number of threads Matlab is using?
body: <p>When I run simply <code>"matlab"</code>, maxNumCompThreads returns 4.</p>
  
  <p>When I run <code>"matlab -singleCompThread"</code>, maxNumCompThreads returns 1.</p>
  
  <p>However in both instances, <code>ps uH p &lt;PID&gt; | wc -l</code> (which I picked up from another question on SO to determine the number of threads a process is using) returns 35.</p>
  
  <p>What gives?  Can somebody explain to me what the 35 represents, and whether or not I can trust maxNumCompThreads as indicating that Matlab is only using one thread?</p>