Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Friedrich
Friedrich am 27 Mai 2013
Bearbeitet: Friedrich am 27 Mai 2013
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.

Weitere Antworten (1)

KHOULOUD SAMMADI
KHOULOUD SAMMADI am 26 Feb. 2018
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 Kommentare
Steven Lord
Steven Lord am 26 Feb. 2018
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 am 26 Feb. 2018
Bearbeitet: KHOULOUD SAMMADI am 26 Feb. 2018
I did all the steps but, but it is not working, i have the same warning message :(

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by