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!