Foldover triangle warnings when using cp2tform in a parfor loop

조회 수: 2 (최근 30일)
Willis
Willis 2015년 12월 17일
댓글: Willis 2016년 1월 25일
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
Rebecca Krosnick
Rebecca Krosnick 2015년 12월 21일
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 2016년 1월 25일
Thank you Rebecca, this documentation helped me understand my issue. Ultimately, the problem was related to the suppression of MATLAB warnings.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by