Thanks for the explanation! One related question, in case anyone's still reading here: I'm planning to run my code on a cluster, where the size of the machine I'm being allocated varies with the overall usage level. That is, my code might run on a 12 core machine one day, a 24 core machine the next etc.
What's the best way to automatically set the number of processors/workers in my code? At the moment I'm doing: nprocs()==CPU_CORES || addprocs(CPU_CORES-1)
