Explanation

For MATLAB to execute parfor loops efficiently, the amount of data sent to the MATLAB workers must be minimal. One of the ways MATLAB achieves this is by restricting the way variables can be indexed in parfor iterations. The indicated variable is indexed in a way that is incompatible with parfor.


Suggested Action

Fix the indexing. For a description of the indexing restrictions, see Sliced Variables.