Foldover triangle warnings when using cp2tform in a parfor loop

1 view (last 30 days)
I've been testing the use of the MATLAB function cp2tform in a parfor loop. My input parameters are cp2tform(v, u, 'piecewise linear'). Now, when I run cp2tform within a normal for loop for a given set of v and u values there are few warnings regarding foldover triangles. However, when the function is used in the parfor loop, many of the previous (v, u) pairs that had no foldover triangles, now have warnings. The only thing that changed in this scenario is the use of a parfor vs. a regular for loop. Any insight into what about the cp2tform() (or parallel computing toolbox) may be causing this would be great.
  2 Comments
Rebecca Krosnick
Rebecca Krosnick on 21 Dec 2015
What warnings are you experiencing? If the warnings or errors only occur when using "parfor", perhaps this is related to the scope of the "v" and "u" variables. The following links provide more information about variables in "parfor" loops:
Willis
Willis on 25 Jan 2016
Thank you Rebecca, this documentation helped me understand my issue. Ultimately, the problem was related to the suppression of MATLAB warnings.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!