Given the default configuration, it is usually better to break your work down into multiple independent jobs. For example, if you are processing 10,000 images, instead of a single Matlab job that processes them, perhaps you could have 10,000 jobs that each process 1 image. Condor is then able to schedule your jobs across multiple computers or at least multiple cores on a single computer, giving you the speed benefits of parallelism. +To ensure that Matlab only uses one core, put this in your Matlab script: + +{code} +lastN = maxNumCompThreads(1); +{endcode} + +If you're using the Matlab Compiler, but want to use multiple threads when doing development, you could use something like this to limit Matlab to one thread only for compiled versions: + +{code} +if isdeployed + lastN = maxNumCompThreads(1); +end +{endcode} + +*TODO*: Is the lastN necessary? + {section: Additional Resources} Many other sites are using Matlab under Condor. Here are links to the documentation from just a few.