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

missing pathdef.m

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

Best Answer

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.