MATLAB Matlab errors in initialization

  • Thread starter Thread starter Tosh5457
  • Start date Start date
  • Tags Tags
    Errors Matlab
Click For Summary
The discussion revolves around persistent error messages and functionality issues in MATLAB, including warnings about an outdated toolbox path cache, undefined functions, and initialization failures. Users are experiencing problems with specific functions like 'mpower' and 'quad' not being recognized, even after reinstalling MATLAB. It is suggested that remnants from a previous installation may be causing these issues. Recommendations include thoroughly uninstalling MATLAB, removing any residual files, and possibly installing the latest version. Users are advised to back up their m-files, check for antivirus issues, and consider professional help if problems persist. Overall, the conversation highlights the importance of a clean installation to resolve MATLAB setup issues.
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
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K