Matlab path problem on new R2015a installation

1 visualización (últimos 30 días)
Aaron Urbas
Aaron Urbas el 23 de Jun. de 2015
Respondida: Sanjay Manohar el 31 de Ag. de 2016
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.

Respuestas (1)

Sanjay Manohar
Sanjay Manohar el 31 de Ag. de 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!

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by