Javier
Toolbox Path Cache read in 0.00 seconds.
Error: File: pathdef.m Line: 19 Column: 3
Unexpected MATLAB operator.
Warning: MATLAB did not appear to successfully set the search path. To avoid this
warning the next time you start MATLAB, use
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pathdef.shtml
to help troubleshoot the "pathdef.m" file. To recover for this session
of MATLAB, type "restoredefaultpath;matlabrc".
Warning: Duplicate directory name: C:\Program Files (x86)\MATLAB\R2007a Student\toolbox\local.
MATLAB Path initialized in 0.00 seconds.
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:UndefinedFunction
Undefined function or method 'colordef' for input arguments of type 'double'.
> In matlabrc at 108
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 or method 'usejava' for input arguments of type 'char'.
I had this same problem and fixed it through modifying the pathdef.m file. You can view it by typing "open pathdef" in the command window. The displayed faulty form was as shown below:
function p = pathdef
%PATHDEF Search path defaults.
% PATHDEF returns a string that can be used as input to MATLABPATH
% in order to set the path.
% Copyright 1984-2002 The MathWorks, Inc.
% $Revision: 1.4.2.1 $ $Date: 2003/01/16 12:51:34 $
% DO NOT MODIFY THIS FILE. IT IS AN AUTOGENERATED FILE.
% EDITING MAY CAUSE THE FILE TO BECOME UNREADABLE TO
% THE PATHTOOL AND THE INSTALLER.
p = [...
%%% BEGIN ENTRIES %%%
'C:\Users\"username"\Documents\MATLAB;', ...
c:\program files (x86)\matlab\r2007a student\toolbox\matlab\general;', ...
c:\program files (x86)\matlab\r2007a student\toolbox\matlab\ops;', ...
c:\program files (x86)\matlab\r2007a student\toolbox\matlab\lang;', ...
c:\program files (x86)\matlab\r2007a student\toolbox\matlab\elmat;', ...
I changed this to the following form and it made everything work correctly... or at least so it seems to this point.
p = [...
%%% BEGIN ENTRIES %%%
'C:\Users\"username"\Documents\MATLAB;', ...
matlabroot,'\toolbox\matlab\general;', ...
matlabroot,'\toolbox\matlab\ops;', ...
matlabroot,'\toolbox\matlab\lang;', ...
matlabroot,'\toolbox\matlab\elmat;', ...
Hope this helps...