Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

restoredefaultpath;matlabrc

160 views
Skip to first unread message

rockybalboa

unread,
Aug 31, 2009, 8:10:29 AM8/31/09
to
Hi, I have the following error when I start matlab (please see below). I tried to uninstall matlab and reinstall it again but I still have the same problem.
Any help is greatly appreciated.

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'.

Tim

unread,
Oct 19, 2009, 1:26:03 AM10/19/09
to
rockybalboa <javier....@yahoo.com> wrote in message <1708266170.62323.12517...@gallium.mathforum.org>...

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...

Peyman

unread,
Sep 21, 2012, 10:23:08 AM9/21/12
to
"Tim" wrote in message <hbgt9b$i2o$1...@fred.mathworks.com>...
I am having the same problem.
When I opened pathdef.m file, it was empty!!
0 new messages