MATLAB Matlab errors in initialization

  • Thread starter Tosh5457
  • Start date
125
28
My Matlab was fine, until one day these messages started appearing on the console when I start Matlab:

Code:
Warning: MATLAB Toolbox Path Cache is out of date and is not being used.
Type 'help toolbox_path_cache' for more info
Undefined function or method 'mpower' for input arguments of type 'struct'.
Warning: MATLAB did not appear to successfully set the search path. To avoid this
warning the next time you start MATLAB, use
[PLAIN]http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pathdef.shtml[/PLAIN] [Broken]
to help troubleshoot the "pathdef.m" file. To recover for this session
of MATLAB, type "restoredefaultpath;matlabrc".
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2010a\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:UndefinedFunction
Undefined function or method 'colordef' for input arguments of type 'double'.
> In matlabrc at 102
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'.
> In matlabrc at 125
Warning: Failed to add default profiler filters.
What is this? And why did these messages start appearing out of nowhere?
Also, functions like quad just don't exist. I can't use them and I can't even find them in the function browser. I just re-installed Matlab, but the same thing is happening...
 
Last edited by a moderator:

Wrichik Basu

Gold Member
2018 Award
1,027
882
It seems traces of the previous installation of Matlab is affecting the re-installation. This is not an accurate solution, but you can try the following:
  1. Uninstall Matlab, and clean any traces. This means going to the Program folder and clearing any residual files. You can keep your m-files, but it would be preferable if you move them off to an usb drive and unmount it. This way, the new installation won't be affected by anything you did previously.
  2. Install the latest version of Matlab. You may have to pay the software maintenance charges if you haven't paid them already.
  3. Put in your license number and see if the problem continues.
  4. If the problem uninstall Matlab (clear all residues as well), and boot your computer into safe mode (without networking or command prompt).
  5. Now install Matlab and see if you face the same problem.
  6. If problem continues, get your computer checked by a good antivirus.
  7. If still not solved, get your computer checked by a software professional.
 

Want to reply to this thread?

"Matlab errors in initialization" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top