It is not possible to assign a calculation directly to a processor in MATLAB. However, there are several different ways to use more processors.
First, there are several operations that are implicitly mulitthreaded in MATLAB. If blah_blah () is heavily dependent on linear algebra or elementary calculations such as sin or log, then the work will usually be distributed across your 4 cores by the operating system. This functionality comes with MATLAB.
Parallel Computing Toolbox gives you more access to explicit multiprocessing. Typically, parfor is used to work with various independent data segments. There are also other tools that allow you to write a single piece of code that works with various pieces of data assigned to different computing workers.
source share