User`s guide
parfor Limitations
2-11
parfor Limitations
Most of these restrictions result from the need for loop iterations to be completely
independent of each other, or the fact that the iterations run on MATLAB worker
sessions instead of the client session.
• Inputs and Outputs
• “Functions with Interactive Inputs” on page 2-12
• “Displaying Output” on page 2-12
• Classes and Handles
• “Using Objects in parfor-Loops” on page 2-13
• “Handle Classes” on page 2-13
• “Sliced Variables Referencing Function Handles” on page 2-13
• Nesting and Flow
• “Nested Functions” on page 2-15
• “Nested Loops” on page 2-15
• “Nested spmd Statements” on page 2-17
• “Break and Return Statements” on page 2-17
• “P-Code Scripts” on page 2-17
• Variables and Transparency
• “Unambiguous Variable Names” on page 2-19
• “Transparency” on page 2-19
• “Structure Arrays in parfor-Loops” on page 2-20
• “Scalar Expansion with Sliced Outputs” on page 2-21
• “Global and Persistent Variables” on page 2-22