Explanation

MATLAB runs parfor loops on multiple MATLAB workers that have multiple workspaces. The indicated function might not access the correct workspace; therefore, its usage is invalid.


Suggested Action

Rewrite the application to avoid using this function. For information about what is and is not valid within a parfor loop, see Transparency.