Errors thrown when Parallel Toolbox invoked or Coder generation attempted
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi all, I'm trying to speed up some code by using Parallel Toolbox and/or Coder. Yesterday I downloaded 2013b with these packages and installed them, though they are not functioning correctly. When I try to set up a pool, I get this error:
>> myPool=parpool(2);
Error using parpool (line 99)
Undefined function or variable 'matlab.internal.getSettingsRoot'.
Also, when trying to transfer the code to MEX using Coder, I get:
>> coder -build FCP.prj
Compilation failed.
Undefined variable "coder" or class "coder.internal.moreinfo".
Use help codegen for more information on using this command.
I'm not sure if they're related. I've tried searching for these errors online, but I couldn't find anything right off. Maybe I'm not looking in the right places. Any help is appreciated, thanks much!
댓글 수: 3
Marko Budisic
2014년 1월 28일
I had a similar issue happening when running 'matlabpool open'. The culprit was a custom pathdef.m file. It appears that Matlab 2013b's internals are arranged slightly differently compared to 2013a and earlier versions. If you have a custom pathdef.m from an earlier version, it overrides 2013b's path setup and causes errors such as above.
Solution was to erase and re-generate pathdef.m to restore Matlab's toolbox paths and then manually add all the custom-toolbox directories I use.
답변 (2개)
Ryan Livingston
2013년 12월 14일
I'll suggest the usual suspects. Try running:
rehash toolboxcache
restoredefaultpath
댓글 수: 2
Haripriya Sharma
2014년 8월 4일
I suggest changing the sequence of execution of the above mentioned commands, to first restore the default search path and then refresh function and file system path caches. Next check if the restorations help resolve the issue, if yes and if you do not have custom search paths, you can save the path settings to default by executing:
>> savepath
To reflect the changes in some cases require restarting MATLAB.
Rob
2014년 12월 18일
Thanks; this did the trick for me when I ran into the problem in R2015a-prerelease!
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
Tom
2014년 5월 15일
Came across this problem also. Marko Budisic's suggestion was exactly the problem in my case. Reset the "Set Path" directories to the default and re-added my custom directories and if by magic, solved!
Thanks.
To reset using the GUI: Open up "Set Path" (located in the "Environment tab of Matlab 2013+) and then hit the "Default" button at the bottom of the panel. Then add your custom directories once the defaults have been restored. Done.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!