Matlab path problem on new R2015a installation
3 views (last 30 days)
Show older comments
I tried installing Matlab R2015a on a Windows 7 (64-bit) computer which currently has R2012b on it. After installation when I start Matlab I see the following 3 items at the top of the command window:
The delimiter should be a non-empty char string.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2015a\toolbox\local
I've come across the two warnings searching around but not the first error ("The delimiter should be a non-empty char string") related to Matlab startup. I tried running "restoredefaultpath;matlabrc" to fix the issue temporarily but that fails as well. "restoredefaultpath" appears to run successfully but running "matlabrc" afterword gives the exact same error as at startup with the addition of a "Warning: Duplicate directory" for every directory in the path (alot of them). I tried reinstalling Matlab but encountered the same problem. I stepped into the 'matlabrc' function and the "The delimiter should be a non-empty char string" error is resulting from the following call:
matlab.internal.toolboxes.addInstalledToolboxesToPath;
Any help would be appreciated. I don't really want to uninstall R2012b just yet because it's still working.
0 Comments
Answers (1)
Sanjay Manohar
on 31 Aug 2016
Hi I had this same problem. I found that I had a file called "strplit.m" in one of my toolboxes which I had downloaded from the internet, on the path.
I typed
which strplit
and this told me where the file was. I then deleted it using
!rm
followed by that path. This solved the path problem!
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!