If you use a function that is not strictly computational in
nature (e.g., input
, keyboard
) in a parfor
-loop
or in any function called by a parfor
-loop, the
behavior of that function occurs on the worker. The behavior might
include hanging the worker process or having no visible effect at
all.
When running a parfor
-loop on a parallel
pool, all command-line output from the workers displays in the client
Command Window, except output from variable assignments. Because the
workers are MATLAB® sessions without displays, any graphical output
(for example, figure windows from plot
,)
from the pool does not display at all.