I still get the error message if I try to save the results x{i} to another variable outside the parfor loop. Any suggestions how to do this?
How can I save the variables x and fval when using [x,fval] = fmincon() in a parfor?
조회 수: 2 (최근 30일)
이전 댓글 표시
I get the following error:
An UndefinedFunction error was thrown on the workers for 'x'. This might be because the file containing 'x' is not accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the documentation for 'parallel.Pool/addAttachedFiles' for more details.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!