Errors thrown when Parallel Toolbox invoked or Coder generation attempted
2 views (last 30 days)
Show older comments
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 Comments
Marko Budisic
on 28 Jan 2014
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.
Answers (2)
Ryan Livingston
on 14 Dec 2013
I'll suggest the usual suspects. Try running:
rehash toolboxcache
restoredefaultpath
2 Comments
Haripriya Sharma
on 4 Aug 2014
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
on 18 Dec 2014
Thanks; this did the trick for me when I ran into the problem in R2015a-prerelease!
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
Tom
on 15 May 2014
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 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!