Date: Dec 5, 2012 6:45 PM Author: spasmous Subject: Any way to tell if inside a parfor loop? Is there any way to tell if you are inside a parfor loop? I have a function that displays progress (using imagesc) but I'd like disable this if it was called from inside a parfor loop, since the display is not shown but the imagesc command still uses up processing time.
E.g. ideally something like this: if ~inside_parfor(); imagesc(abc); end