Matlab path problem on new R2015a installation

조회 수: 1 (최근 30일)
Aaron Urbas
Aaron Urbas 2015년 6월 23일
답변: Sanjay Manohar 2016년 8월 31일
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:
Any help would be appreciated. I don't really want to uninstall R2012b just yet because it's still working.

답변 (1개)

Sanjay Manohar
Sanjay Manohar 2016년 8월 31일
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
followed by that path. This solved the path problem!


Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by