Explanation

MATLAB runs loops in parfor functions by dividing the loop iterations into groups, and then sending them to MATLAB workers where they run in parallel. For MATLAB to do this in a repeatable, reliable manner, it must be able to classify all the variables used in the loop. The code uses the indicated variable in a way that is incompatible with classification.


Suggested Action

Fix the usage of the indicated variable.

For more information about variable classification and other restrictions on parfor loop iterations, see Classification of Variables in parfor-Loops.