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개)

Matt J
Matt J 2017년 11월 13일
편집: Matt J 2017년 11월 13일

2 개 추천

Replace "matlabpool" with "parpool" everywhere in your code.

카테고리

도움말 센터File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

질문:

2017년 11월 13일

편집:

2017년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by