Matlab errors in initialization

  • Context: MATLAB 
  • Thread starter Thread starter Tosh5457
  • Start date Start date
  • Tags Tags
    Errors Matlab
Click For Summary
SUMMARY

The discussion addresses critical initialization errors encountered in MATLAB, specifically version R2010a. Users reported warnings related to an outdated toolbox path cache, undefined functions such as 'mpower' and 'colordef', and issues with the 'matlabrc' file. The recommended solution involves completely uninstalling MATLAB, removing all residual files, and performing a fresh installation of the latest version. Users should also ensure their license is valid and consider booting into safe mode during installation to avoid conflicts.

PREREQUISITES
  • Familiarity with MATLAB installation procedures
  • Understanding of MATLAB toolbox management
  • Basic knowledge of system file management
  • Experience with troubleshooting software installation issues
NEXT STEPS
  • Research how to properly uninstall MATLAB and remove residual files
  • Learn about MATLAB toolbox path management and cache issues
  • Explore the latest features and updates in the newest MATLAB version
  • Investigate safe mode installation procedures for Windows operating systems
USEFUL FOR

MATLAB users, software developers, and IT professionals involved in software installation and troubleshooting, particularly those facing initialization issues in MATLAB.

Tosh5457
Messages
130
Reaction score
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] 
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:
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K