Matlab errors in initialization

In summary, the speaker is experiencing issues with their Matlab program, including warning messages and missing functions. They have tried reinstalling Matlab but the problem persists, possibly indicating an issue with residual files from a previous installation. They suggest completely uninstalling and re-installing the latest version of Matlab, and if the problem persists, seeking help from a professional or checking for viruses.
  • #1
Tosh5457
134
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
  • #2
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.
 

FAQ: Matlab errors in initialization

1. What are "Matlab errors in initialization"?

"Matlab errors in initialization" refer to the errors that occur during the initialization phase of a Matlab program. This phase includes loading and parsing all the necessary files and functions, and if there are any errors, they will be displayed in the Command Window.

2. What causes Matlab errors in initialization?

There can be several causes of "Matlab errors in initialization", such as missing or incorrect files, syntax errors in the code, conflicts with other programs, or memory issues. It is important to carefully check the code and any external dependencies to identify the specific cause of the error.

3. How can I troubleshoot Matlab errors in initialization?

The first step in troubleshooting Matlab errors in initialization is to carefully read and understand the error message. This will provide information about the type of error and the line where it occurred. Then, check the code and any external dependencies for potential issues. It may also be helpful to use debugging tools or consult online resources for guidance.

4. Can I prevent Matlab errors in initialization?

While it is not always possible to prevent all "Matlab errors in initialization", there are some steps you can take to minimize the chances of encountering them. These include keeping your code and external dependencies organized, using clear and consistent naming conventions, and regularly checking for updates and compatibility issues.

5. Are there any resources for troubleshooting Matlab errors in initialization?

Yes, there are many resources available for troubleshooting "Matlab errors in initialization". The official Matlab documentation and forums are a good place to start, as well as online communities and forums where users share their experiences and solutions. It may also be helpful to consult with colleagues or seek guidance from a Matlab expert.

Similar threads

Replies
11
Views
3K
Replies
3
Views
2K
Replies
5
Views
8K
Replies
2
Views
4K
Replies
5
Views
3K
Replies
6
Views
2K
Replies
5
Views
7K
Replies
1
Views
3K
Replies
1
Views
2K
Back
Top