missing pathdef.m when starting MATLAB 7.14 (R2012a), new warning

4 次查看(过去 30 天)
Warning: C:\Program Files\MATLAB\R2012a\toolbox\local\pathdef.m not found.
Toolbox Path Cache is not being used. Type 'help toolbox_path_cache' for more
info
Undefined function or variable 'ispc'.
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\R2012a\toolbox\local.
Warning: Initializing Handle Graphics failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup,
which should be resolved as soon as possible. Error detected was:
MATLAB:undefinedVarOrClass
Undefined variable "graphics" or class
"graphics.internal.initializeMATLABRoot".
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup,
which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function 'usejava' for input arguments of type 'char'.
> In matlabrc at 113
Warning: Failed to add default profiler filters.
> In matlabrc at 168
restoredefaultpath;
matlabrc
savepath
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\sldv\sldv.
> In restoredefaultpath at 47
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\shared\hdlshared.
> In restoredefaultpath at 47
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\sldv\sldv.
> In restoredefaultpath at 47
>>restoredefaultpath;
matlabrc
status = savepath('<path to your Desktop>/pathdef.m')
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\sldv\sldv.
> In restoredefaultpath at 47
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\shared\hdlshared.
> In restoredefaultpath at 47
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2012a\toolbox\sldv\sldv.
> In restoredefaultpath at 47
status =
1

采纳的回答

Friedrich
Friedrich 2013-5-27
编辑:Friedrich 2013-5-27
Him
when you google for the first line of the error you get:
You followed it which is good. The warning about the duplicate entry can be ignored (its a known problem).
So make sure you pathdef.m file exists and has the expected content. How to do this is explained in the link above.

更多回答(1 个)

KHOULOUD SAMMADI
KHOULOUD SAMMADI 2018-2-26
Undefined variable "matlab" or function "matlab.internal.toolboxes.addInstalledToolboxesToPath". 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\MATLAB Production Server\R2015a\toolbox\local
How can i resolve this issue ??
  2 个评论
Steven Lord
Steven Lord 2018-2-26
What happened when you tried the suggestion given in the error message you quoted?
 
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.
KHOULOUD SAMMADI
KHOULOUD SAMMADI 2018-2-26
编辑:KHOULOUD SAMMADI 2018-2-26
I did all the steps but, but it is not working, i have the same warning message :(

请先登录,再进行评论。

类别

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