The code contains evalin
or assignin
function calls within a parfor
loop. These calls refer to
the base workspaces of the workers and do not update the base workspace of the
MATLAB client that issued the parfor
loop.
Rewrite the code without using the evalin
or
assignin
function calls. They can result in performance
problems even in nonparallel loops.