How to add files to other parallel pool?
2 次查看(过去 30 天)
显示 更早的评论
when I load a mat file before the parfor circle , I get an error described below. An UndefinedFunction error was thrown on the workers for 'm_nDeteDirect'. This might be because the file containing 'm_nDeteDirect' 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.
And then I add two lines of code to addAttachedFiles according to the error.But still get the same error.The code is in the attached file(test.m).
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!