From: Vikas Bajpai on
I have a question that whether we need to separately write code for
parallel implementation of a code or the Matlab automatically
implements the code parallely.
From: Walter Roberson on
Vikas Bajpai wrote:
> I have a question that whether we need to separately write code for
> parallel implementation of a code or the Matlab automatically
> implements the code parallely.

Matlab only automatically parallelizes some kinds of mathematics
operations, and only if the vectors are big enough to make the overhead
worthwhile.

If you want your program to use parallelism, you have to write it
specifically with PARFOR or with a message passing interface.

Detecting worth-while opportunities for parallelism automatically is
difficult.