How do I avoid this error "undefined function or variable 'matlabpool'"?
显示 更早的评论
I use matlab 2017a and whenever I use parfor function it gives me the error "undefined function or variable 'matlabpool'". I have a dual core i5 processor and the parallel computing toolbox works fine and connects to two workers when I start Parallel computing. But when I write a function or use parfor it gives me error "undefined function or variable 'matlabpool'". What should I do?
回答(1 个)
Replace "matlabpool" with "parpool" everywhere in your code.
类别
在 帮助中心 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!